forked from akubera/bigdecimal-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (36 loc) · 884 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: rust
rust:
- 1.16.0
- 1.22.0
- 1.30.0
- stable
- beta
- nightly
sudo: false
script:
- cargo build --verbose
- cargo test
- cargo test --features serde
matrix:
allow_failures:
- rust: nightly
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
- libiberty-dev
after_success: |
curl -L https://github.com/SimonKagstrom/kcov/archive/master.tar.gz | tar xz &&
pushd kcov-master &&
mkdir build &&
cmake -DCMAKE_INSTALL_PREFIX=$HOME . &&
make install &&
popd &&
for file in target/debug/bigdecimal-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; $HOME/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"