Compare commits
9 Commits
master
...
bbs/latex-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b3bdce769 | ||
|
|
e5e1a7707d | ||
|
|
75e2bbc1a0 | ||
|
|
c90061dcfe | ||
|
|
bfbcfcf3a5 | ||
|
|
5a8104fd74 | ||
|
|
f689ed244e | ||
|
|
08117193b5 | ||
|
|
cd15a43524 |
10
.travis.yml
10
.travis.yml
@ -20,8 +20,16 @@ addons:
|
||||
- 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
travis_docker_env.list
Normal file
9
travis_docker_env.list
Normal 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
travis_docker_test_script.sh
Normal file
12
travis_docker_test_script.sh
Normal 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)"
|
||||
Loading…
x
Reference in New Issue
Block a user