-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
38 lines (33 loc) · 1.04 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
language: rust
# cache: cargo
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
- libiberty-dev
os:
- linux
- osx
- windows
rust:
- 1.50.0
- 1.67.1
- 1.68.0
script:
- cargo build --verbose --all
- cargo test --verbose --all -- --nocapture
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ "$TRAVIS_OS_NAME" = "linux" ] &&
wget https://github.com/SimonKagstrom/kcov/archive/master.zip &&
unzip master.zip && mv kcov-master kcov && mkdir kcov/build && cd kcov/build &&
cmake .. && make && make install DESTDIR=../built && cd ../.. &&
for file in target/debug/deps/*adr*; do [ -x "${file}" ] || continue; ./kcov/built/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --exclude-path=`pwd`/adr_core_local_impl/tests/ --verify target/kcov ${file}; done &&
./kcov/built/usr/local/bin/kcov --coveralls-id=${TRAVIS_JOB_ID} --merge ./target/kcov-merge ./target/kcov &&
echo "Uploaded code coveralls"