codecov-racket/README.md
Georges Dupéron 3289705c1a Install cover-codecov in the example .travis.yml
I don't think `cover-codecov` comes with the main distribution, so the example .travis.yml file in the README should include the command to install it.
2017-01-07 22:46:41 +01:00

42 lines
1.7 KiB
Markdown

# Cover Codecov
[![Build Status](https://travis-ci.org/codecov/codecov-racket.svg?branch=master)](https://travis-ci.org/codecov/codecov-racket)
[![codecov.io](https://codecov.io/github/codecov/codecov-racket/coverage.svg?branch=master)](https://codecov.io/github/codecov/codecov-racket?branch=master)
Adds [Codecov](https://codecov.io/) support to [Cover](https://github.com/florence/cover).
_Note_: [Travis CI](https://travis-ci.org/) is currently the only supported method of posting data to [Codecov](https://codecov.io/).
## Use with TravisCI
First enable your repository on Travis and Codecov.
Next add `cover-codecov` to the `build-deps` of your `info.rkt`.
Then create a `.travis.yml` in the root of your repository.
```yml
# .travis.yml
langauge: c
sudo: false
env:
global:
- RACKET_DIR=~/racket
matrix:
- RACKET_VERSION=6.2 # Set this to the version of racket you use
before_install: # Install Racket
- 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: raco pkg install --deps search-auto $TRAVIS_BUILD_DIR # install dependencies
script:
- raco test $TRAVIS_BUILD_DIR # run tests. you wrote tests, right?
after_success:
- raco pkg install --deps search-auto cover cover-codecov
- raco cover -f codecov -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 Codecov.
For additional Travis configuration information look at [Travis Racket](https://github.com/greghendershott/travis-racket).