diff --git a/.travis.yml b/.travis.yml index ff05cc9..83050a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,18 @@ langauge: c +sudo: false env: - - RACKET_VERSION=6.1.1 + global: + - RACKET_DIR=~/racket + matrix: + - RACKET_VERSION=6.1.1 before_install: - git clone https://github.com/greghendershott/travis-racket.git ../travis-racket - cat ../travis-racket/install-racket.sh | bash + - export PATH="${RACKET_DIR}/bin:${PATH}" -install: /usr/racket/bin/raco pkg install $TRAVIS_BUILD_DIR +install: raco pkg install $TRAVIS_BUILD_DIR script: - - /usr/racket/bin/raco test -Q $TRAVIS_BUILD_DIR - - /usr/racket/bin/raco cover -f coveralls -d $TRAVIS_BUILD_DIR/coverage -b $TRAVIS_BUILD_DIR + - raco test -Q $TRAVIS_BUILD_DIR + - raco cover -f coveralls -d $TRAVIS_BUILD_DIR/coverage -b $TRAVIS_BUILD_DIR diff --git a/README.md b/README.md index f57271c..45739f1 100644 --- a/README.md +++ b/README.md @@ -28,18 +28,23 @@ If your code is hosted on a public github repo then you can use this plugin in c Just enable your repository on both services and then add a `.travis.yml` file to your repo with the following contents: ```yml langauge: c +sudo: false env: - - RACKET_VERSION=6.1.1 + global: + - RACKET_DIR=~/racket + matrix: + - RACKET_VERSION=6.1.1 before_install: - git clone https://github.com/greghendershott/travis-racket.git ../travis-racket - cat ../travis-racket/install-racket.sh | bash + - export PATH="${RACKET_DIR}/bin:${PATH}" -install: /usr/racket/bin/raco pkg install --deps search-auto $TRAVIS_BUILD_DIR # install dependencies +install: raco pkg install --deps search-auto $TRAVIS_BUILD_DIR # install dependencies script: - - /usr/racket/bin/raco test $TRAVIS_BUILD_DIR # run tests. you wrote tests, right? - - /usr/racket/bin/raco cover -f coveralls -d $TRAVIS_BUILD_DIR/coverage . # generate coverage information for coveralls + - raco test $TRAVIS_BUILD_DIR # run tests. you wrote tests, right? + - raco cover -f coveralls -d $TRAVIS_BUILD_DIR/coverage . # generate coverage information for coveralls ``` The above Travis configuration will install any project dependencies, test your project, and report coverage information to coveralls.