aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-04-05 12:46:51 -0400
committerbnewbold <bnewbold@robocracy.org>2016-04-05 12:46:51 -0400
commitf8e9fb1c1a44e6c008791483a6529ec5fa1db61f (patch)
treea5198307db03b36a42f4a1b7c9d7f3c6fc72e473
parentace2fe485cc46c67fc425a6c4632f2a1ce606c88 (diff)
downloadPyX.jl-f8e9fb1c1a44e6c008791483a6529ec5fa1db61f.tar.gz
PyX.jl-f8e9fb1c1a44e6c008791483a6529ec5fa1db61f.zip
update travis to try both Python2 and Python3
-rw-r--r--.travis.yml15
1 files changed, 11 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 336c833..0089d69 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,16 +12,23 @@ julia:
# 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 ; 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
- - python -c "import pyx; print(pyx.__version__)"
+ - 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()); Pkg.build("PyX"); Pkg.test("PyX"; coverage=true)'
-
+ - 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)'