Compare commits

...

9 Commits

Author SHA1 Message Date
Simon Christ 5b3bdce769 Update .travis.yml 2019-12-08 15:24:56 +01:00
Simon Christ e5e1a7707d Update .travis.yml 2019-12-08 14:55:05 +01:00
Simon Christ 75e2bbc1a0 Update .travis.yml 2019-12-08 14:41:33 +01:00
Simon Christ c90061dcfe Update .travis.yml 2019-12-08 14:07:51 +01:00
Simon Christ bfbcfcf3a5 add dist entry 2019-12-08 14:00:21 +01:00
Simon Christ 5a8104fd74 Create travis_docker_test_script.sh 2019-12-08 13:16:28 +01:00
Simon Christ f689ed244e Create travis_docker_env.list 2019-12-08 13:14:29 +01:00
Simon Christ 08117193b5 add script entry 2019-12-07 19:46:19 +01:00
Simon Christ cd15a43524 use docker-image with latex installed 2019-12-07 19:40:28 +01:00
3 changed files with 31 additions and 0 deletions
+10
View File
@@ -19,9 +19,17 @@ addons:
- libgtk-3-dev
- xauth
- xvfb
dist: trusty
sudo: required
services:
- docker
before_install:
- echo "**** pulling Docker image"
- docker pull tkpapp/texlive-julia-minimal
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pwd ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./test/install_wkhtmltoimage.sh ; fi
@@ -29,6 +37,8 @@ notifications:
email: true
script:
- echo "**** running Docker"
- docker run --env-file travis_docker_env.list -t -a STDOUT -a STDIN -a STDERR -v $PWD:/mnt tkpapp/texlive-julia-minimal /mnt/travis_docker_test_script.sh $TRAVIS_JULIA_VERSION
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- if [[ `uname` = "Linux" ]]; then TESTCMD="xvfb-run julia"; else TESTCMD="julia"; fi
- $TESTCMD -e 'using Pkg; Pkg.build(); Pkg.test(coverage=true)'
+9
View File
@@ -0,0 +1,9 @@
# environment variables that are passed from Travis to Docker
DOCUMENTER_KEY
TRAVIS_BRANCH
TRAVIS_PULL_REQUEST
TRAVIS_REPO_SLUG
TRAVIS_TAG
TRAVIS_OS_NAME
TRAVIS_JULIA_VERSION
JULIA_PROJECT
+12
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)"