Skip to content

Commit

Permalink
circleci: generate coverage report
Browse files Browse the repository at this point in the history
This moves the coverage generation from Travis CI to CircleCI.

On Travis CI, this job would start last and thus make the build time
longer -- with CircleCI, we now have four extra Docker containers at
our disposal. They start significantly faster than the Google Compute
Engine instances used by Travis CI, which further helps to ensure a
quick turn around on the builds.
  • Loading branch information
mgeisler committed May 1, 2018
1 parent 673bc33 commit 50c41a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
13 changes: 13 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
jobs:
build:
docker:
- image: xd009642/tarpaulin
steps:
- checkout
- run:
name: Generate coverage report
command: cargo tarpaulin --out Xml --features 'term_size hyphenation'
- run:
name: Upload to codecov.io
command: bash <(curl -s https://codecov.io/bash) -Z -f cobertura.xml
10 changes: 0 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,5 @@ script:
- cargo test --verbose --features "$FEATURES"

matrix:
include:
- rust: stable
sudo: required
cache: off
env: []
script:
- bash <(curl -s https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
- cargo tarpaulin --features 'term_size hyphenation' --out Xml
- bash <(curl -s https://codecov.io/bash) -Z -f cobertura.xml

allow_failures:
- rust: nightly

0 comments on commit 50c41a6

Please sign in to comment.