aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 8b6aa97a68b90bc594b6b32f8dd1bdb58262b3e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
sudo: required
dist: trusty
os:
  - linux
  #- osx # Disabled because 'mactex' is too huge (2+ GB) for Travis CI to install reliably
julia:
  - release
  - nightly
  - 0.4
# Note: deps are tricky! Need full TeX/LaTeX, etc
before_install:
 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update              ; fi
 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y python-pyx python3-pip  ; fi
 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo pip3 install PyX                ; fi
 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update > /dev/null                ; fi
 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install caskroom/cask/brew-cask > /dev/null; fi
 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install mactex > /dev/null   ; fi
 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo pip install PyX                   ; fi
 - python2 -c "import pyx; print(pyx.__version__)"
 - python3 -c "import pyx; print(pyx.__version__)"
 - julia -e 'Pkg.update()'
 - julia -e 'Pkg.add("PyCall")'
notifications:
  email: false
# Default test script didn't work
script:
 - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
 - julia -e 'Pkg.clone(pwd());'
 - julia -e 'ENV["PYTHON"] = "/usr/bin/python2"; Pkg.build("PyCall")'
 - julia -e 'Pkg.build("PyX"); Pkg.test("PyX"; coverage=true)'
 - julia -e 'ENV["PYTHON"] = "/usr/bin/python3"; Pkg.build("PyCall")'
 - julia -e 'Pkg.build("PyX"); Pkg.test("PyX"; coverage=true)'