aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-03-01 22:26:00 -0800
committerbnewbold <bnewbold@robocracy.org>2016-03-03 14:41:45 -0800
commitb20c077ec646fdc2612e31f3305e8cfcedae207b (patch)
tree3cd61686e989db4519b064d2e464aaef02a8ed2e
parent2076b57a9b33060bc88d2631297ae596ecacacfe (diff)
downloadPyX.jl-b20c077ec646fdc2612e31f3305e8cfcedae207b.tar.gz
PyX.jl-b20c077ec646fdc2612e31f3305e8cfcedae207b.zip
add a Travis CI build file
-rw-r--r--.travis.yml27
-rw-r--r--TODO1
2 files changed, 28 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..336c833
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,27 @@
+# Documentation: http://docs.travis-ci.com/user/languages/julia/
+language: julia
+sudo: required
+dist: trusty
+os:
+ - linux
+ - osx
+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 ; 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__)"
+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)'
+
diff --git a/TODO b/TODO
index 674d60d..bf515bd 100644
--- a/TODO
+++ b/TODO
@@ -1,3 +1,4 @@
- lots of temporary files (.log, .dvi, etc) get left around. need to somehow
tell python to exit cleanly at the end, and maybe also use a different
temporary directory.
+- travis: figure out how to do both Python2 and Python3 tests