File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,30 @@ matrix:
97
97
- cargo clippy
98
98
env :
99
99
- REGULAR_TEST=true
100
+ - name : Code Coverage
101
+ language : python
102
+ python : 3.6
103
+ cache :
104
+ pip : true
105
+ # Because we're using the Python Travis environment, we can't use
106
+ # the built-in cargo cacher
107
+ directories :
108
+ - /home/travis/.cargo
109
+ - target
110
+ before_script :
111
+ - curl -L https://github.com/mozilla/grcov/releases/download/v0.4.1/grcov-linux-x86_64.tar.bz2 | tar jxf -
112
+ script :
113
+ - cargo build --verbose --all
114
+ - cargo test --verbose --all
115
+ - tests/.travis-runner.sh
116
+ - zip -0 ccov.zip `find . \( -name "rustpython*.gc*" \) -print`
117
+ - ./grcov ccov.zip -s . -t lcov --llvm --branch --ignore-not-existing --ignore-dir "/*" > lcov.info
118
+ - bash <(curl -s https://codecov.io/bash) -f lcov.info
119
+ env :
120
+ - TRAVIS_RUST_VERSION=nightly
121
+ - REGULAR_TEST=false
122
+ - CARGO_INCREMENTAL=0
123
+ - RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads"
100
124
allow_failures :
101
125
- rust : nightly
102
126
env : REGULAR_TEST=true
You can’t perform that action at this time.
0 commit comments