now using Greg's new sh script and Travis Docker Containers
This commit is contained in:
parent
eed133a6df
commit
67e017846d
13
.travis.yml
13
.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
|
||||
|
|
13
README.md
13
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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user