From d2bafd7142a212a3b23e128faea9922f8c354085 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Tue, 21 Feb 2017 10:10:59 -0800 Subject: [PATCH] travis config --- .travis.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..cfb51cb --- /dev/null +++ b/.travis.yml @@ -0,0 +1,44 @@ +# adapted from +# https://github.com/greghendershott/travis-racket/blob/master/.travis.yml +# Thanks Greg! + +language: c +sudo: false + +env: + global: + - RACKET_DIR=~/racket + matrix: +# - RACKET_VERSION=6.0 +# - RACKET_VERSION=6.1 +# - RACKET_VERSION=6.2 + - RACKET_VERSION=6.3 + - RACKET_VERSION=6.4 + - RACKET_VERSION=6.5 + - RACKET_VERSION=6.6 + - RACKET_VERSION=HEAD + +# You may want to test against certain versions of Racket, without +# having them count against the overall success/failure. +matrix: + allow_failures: + #- env: RACKET_VERSION=HEAD + # Fast finish: Overall build result is determined as soon as any of + # its rows have failed, or, all of its rows that aren't allowed to + # fail have succeeded. + fast_finish: true + +before_install: + - "export DISPLAY=:99.0" # needed for testing with `racket/gui` + - "sh -e /etc/init.d/xvfb start" # needed for testing with `racket/gui` + - git clone https://github.com/mbutterick/travis-racket.git + - cat travis-racket/install-racket.sh | bash # pipe to bash not sh! + - export PATH="${RACKET_DIR}/bin:${PATH}" #install-racket.sh can't set for us + +script: + - cd .. # Travis did a cd into the dir. Back up, for the next: + # don't rely on package server + - travis_retry raco pkg install --deps search-auto https://github.com/mbutterick/brag.git?path=br-parser-tools/br-parser-tools-lib + - raco test -p br-parser-tools-lib + - travis_retry raco pkg install --deps search-auto https://github.com/mbutterick/brag.git?path=brag + - raco test -p brag