-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
64 lines (51 loc) · 1.25 KB
/
.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
cache: cargo
sudo: required
dist: trusty
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
- libiberty-dev
services:
- docker
before_install:
- sudo apt-get update
before_script:
- docker network create nat
- docker-compose up -d
after_script:
- docker-compose down
script:
- cargo build --lib --all-features --verbose
- cargo test --lib --all-features --verbose
- cargo build --verbose
- cargo test --verbose
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
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/rincon_*[^\.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"
fi