From c110cc3586f7f01c0597200b3bb9ba63c8b59071 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Wed, 1 Apr 2015 22:57:30 -0700 Subject: [PATCH] add travis --- .travis.yml | 25 +++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..db6fc7a --- /dev/null +++ b/.travis.yml @@ -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 pollen + - raco test -p pollen \ No newline at end of file diff --git a/README.md b/README.md index 686f2a7..96fe552 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## Pollen: the book is a program +## Pollen: the book is a program [![Build Status](https://travis-ci.org/mbutterick/pollen.svg)](https://travis-ci.org/mbutterick/pollen) A book-publishing system written in [Racket](http://racket-lang.org). Unstable. Incomplete. Et cetera. It’s becoming more civilized. But this is the actual software I use to publish & maintain my web-based book [Butterick’s Practical Typography](http://practicaltypography.com).