From 0461311b14cfe5414be6c075cb7431d8ab9a818e Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Tue, 27 Feb 2018 20:55:41 -0800 Subject: [PATCH] Create travis.yml --- pitfall/travis.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pitfall/travis.yml diff --git a/pitfall/travis.yml b/pitfall/travis.yml new file mode 100644 index 00000000..0dfa43fd --- /dev/null +++ b/pitfall/travis.yml @@ -0,0 +1,33 @@ +# 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.10 + - 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: + - 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: + - travis_retry raco pkg install --deps search-auto --link pitfall + - raco test -p pitfall