Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/florence/cover-codecov
Cover integration for CodeCov
https://github.com/florence/cover-codecov
Last synced: about 1 month ago
JSON representation
Cover integration for CodeCov
- Host: GitHub
- URL: https://github.com/florence/cover-codecov
- Owner: florence
- License: mit
- Created: 2019-04-28T13:11:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-26T02:37:58.000Z (almost 5 years ago)
- Last Synced: 2024-05-09T07:29:37.171Z (8 months ago)
- Language: Racket
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cover Codecov
[![Build Status](https://travis-ci.com/florence/cover-codecov.svg?branch=master)](https://travis-ci.com/florence/cover-codecov.svg?branch=master)
[![codecov.io](https://codecov.io/github/florence/cover-codecov/coverage.svg?branch=master)](https://codecov.io/github/florence/cover-codecov?branch=master)Adds [Codecov](https://codecov.io/) support to [Cover](https://github.com/florence/cover).
This repository was moved back here from https://github.com/codecov/codecov-racket, as Codecov revoked our access to the repository and does not seem to be responding to pull request.
_Note_: The methods of posting data to [Codecov](https://codecov.io/) are includein this repository are [Travis CI](https://travis-ci.org/) and [Gitlab CI](https://about.gitlab.com/gitlab-ci/). Use the `cover-build-services` info.rkt key to add more.
## Use with Travis CI
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
language: c
sudo: false
env:
global:
- RACKET_DIR=~/racket
matrix:
- RACKET_VERSION=6.2 # Set this to the version of racket you usebefore_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).
## Use with Gitlab-CI
Like with Travis, except that you should use the Gitlab format
of the CI configuration file:```yml
image: frolvlad/alpine-glibcvariables:
RACKET_DIR: "$HOME/racket"
RACKET_VERSION: "6.8" # use the desired version of racketbefore_script:
- echo "ipv6" >> /etc/modules
- apk update
- apk add git curl bash openssl sqlite-libs
- git clone https://github.com/greghendershott/travis-racket.git ~/ci-racket
- cat ~/ci-racket/install-racket.sh | bash # pipe to bash not sh!
- export PATH="$RACKET_DIR/bin:$PATH" #install-racket.sh can't set for us
- raco pkg install --auto $CI_PROJECT_DIRstages:
- test
- covertest:
stage: test
script:
- raco test $CI_PROJECT_DIRcover:
stage: cover
script:
- raco pkg install --auto cover cover-codecov
- raco cover -f codecov $CI_PROJECT_DIR
```