2018-09-27 17:10:28 +00:00
|
|
|
language: rust
|
|
|
|
sudo: required
|
|
|
|
rust:
|
|
|
|
- nightly
|
|
|
|
cache: cargo
|
|
|
|
|
|
|
|
script:
|
2018-10-01 11:58:46 +00:00
|
|
|
- rm -f target/debug/rink-* target/debug/query-* target/debug/canonicalize-*
|
2018-09-27 17:10:28 +00:00
|
|
|
- cargo build --verbose
|
|
|
|
- cargo test --verbose
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- libelf-dev
|
|
|
|
- libdw-dev
|
|
|
|
- cmake
|
|
|
|
- gcc
|
|
|
|
- binutils-dev
|
|
|
|
- libiberty-dev
|
|
|
|
|
|
|
|
after_success: |
|
|
|
|
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 &&
|
2018-09-27 19:27:12 +00:00
|
|
|
for file in target/debug/*-*[^\.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 &&
|
2018-09-27 17:10:28 +00:00
|
|
|
bash <(curl -s https://codecov.io/bash) &&
|
2018-10-01 11:58:46 +00:00
|
|
|
echo "Uploaded code coverage"
|