Create travis_docker_test_script.sh

This commit is contained in:
Simon Christ 2019-12-08 13:16:28 +01:00 committed by GitHub
parent f689ed244e
commit 5a8104fd74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,12 @@
#!/bin/bash
JULIAVER=$1 # the first and only argument to the script is the version
JULIABIN=/test/julia-$JULIAVER/bin/julia
## install the image (when necessary)
/test/install-julia.sh $JULIAVER
cd /mnt && if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# run tests
$JULIABIN -e "import Pkg; Pkg.build(); Pkg.test(; coverage=true)"