From b20c077ec646fdc2612e31f3305e8cfcedae207b Mon Sep 17 00:00:00 2001 From: bnewbold Date: Tue, 1 Mar 2016 22:26:00 -0800 Subject: add a Travis CI build file --- .travis.yml | 27 +++++++++++++++++++++++++++ TODO | 1 + 2 files changed, 28 insertions(+) create mode 100644 .travis.yml 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 -- cgit v1.2.3