From 50e336f8376c9bd79a567b40b1f1fa747c35e6ee Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Wed, 1 Apr 2015 22:54:52 -0700 Subject: [PATCH] add travis --- .travis.yaml | 25 +++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .travis.yaml diff --git a/.travis.yaml b/.travis.yaml new file mode 100644 index 0000000..7262145 --- /dev/null +++ b/.travis.yaml @@ -0,0 +1,25 @@ +# 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.1.1 + +matrix: + fast_finish: true + +before_install: + - git clone https://github.com/greghendershott/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: + - raco pkg install --deps search-auto --link sugar + - raco test -p sugar \ No newline at end of file diff --git a/README.md b/README.md index 7c190d5..fe2a6c3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Sugar +Sugar [![Build Status](https://travis-ci.org/mbutterick/sugar.svg)](https://travis-ci.org/mbutterick/sugar) ----- Functions that improve the readability of Racket code.