Codecov take 2.

This commit is contained in:
Jordan Petridis 2017-10-04 11:49:41 +03:00
parent b6879f82b6
commit 693def007a
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -17,6 +17,8 @@ test:stable:
- rustc --version && cargo --version # Print version info for debugging
- cargo build
- cargo test --verbose --jobs 1 --release
after_script:
- wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && tar xzf master.tar.gz && cd kcov-master && mkdir build && cd build && cmake .. && make && make install DESTDIR=../../kcov-build && cd ../.. && rm -rf kcov-master && for file in target/debug/hammond-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done && bash <(curl -s https://codecov.io/bash) && echo "Uploaded code coverage"
# Use cargo to test the project
test:nightly:
@ -31,5 +33,3 @@ test:nightly:
- cargo test --verbose --jobs 1 --release
- cargo bench
allow_failure: true
after_script:
- wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && tar xzf master.tar.gz && cd kcov-master && mkdir build && cd build && cmake .. && make && make install DESTDIR=../../kcov-build && cd ../.. && rm -rf kcov-master && for file in target/debug/hammond-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done && bash <(curl -s https://codecov.io/bash) && echo "Uploaded code coverage"