-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
105 lines (100 loc) · 3.62 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
language: rust
sudo: false
rust:
- nightly
# - beta
env:
global:
- RUST_BACKTRACE=1
# TODO: add envs from https://github.com/japaric/trust/blob/master/.travis.yml
#matrix:
# allow_failures:
# - rust: beta
include:
# These are the targets we support
- env: TARGET=x86_64-unknown-linux-gnu
# TODO: osx build is too slow, so it has been disabled.
#- env: TARGET=x86_64-apple-darwin
# os: osx
# Sanitizers are available only for select architectures. See tracking bug
# at https://github.com/rust-lang/rust/issues/39699 . For usage, it is
# required to have the environment variable RUSTFLAGS="-Z sanitizer=...",
# and cargo has to run with the --target <target> flag.
#
# TODO: currently disabled because they don't work correctly on Travis-CI.
# Linux
#- env: TARGET=x86_64-unknown-linux-gnu RUSTFLAGS="-Z sanitizer=address"
# script:
# - cargo run --target x86_64-unknown-linux-gnu
# - cargo test --target x86_64-unknown-linux-gnu
#
#- env: TARGET=x86_64-unknown-linux-gnu RUSTFLAGS="-Z sanitizer=memory"
# script:
# - cargo run --target x86_64-unknown-linux-gnu
# - cargo test --target x86_64-unknown-linux-gnu
#
#- env: TARGET=x86_64-unknown-linux-gnu RUSTFLAGS="-Z sanitizer=leak" LSAN_OPTIONS=verbosity=1:log_threads=1
# script:
# - cargo run --target x86_64-unknown-linux-gnu
# - cargo test --target x86_64-unknown-linux-gnu
#
# There is no need for this right now. Might need it later when adapting the
# list for concurrency
#- env: TARGET=x86_64-unknown-linux-gnu RUSTFLAGS="-Z sanitizer=thread"
# script:
# - cargo run --target x86_64-unknown-linux-gnu
# - cargo test --target x86_64-unknown-linux-gnu
#
# OSX
#- env: TARGET=x86_64-apple-darwin RUSTFLAGS="-Z sanitizer=address"
# os: osx
# script:
# - cargo run --target x86_64-apple-darwin
# - cargo test --target x86_64-apple-darwin
#
# There is no need for this right now. Might need it later when adapting the
# list for concurrency
#- env: TARGET=x86_64-apple-darwin RUSTFLAGS="-Z sanitizer=thread"
# os: osx
# script:
# - cargo run --target x86_64-apple-darwin
# - cargo test --target x86_64-apple-darwin
#
# TODO: Memory sanitizer works only with x86_64-unknown-linux-gnu
#- env: TARGET=x86_64-apple-darwin RUSTFLAGS="-Z sanitizer=memory"
# os: osx
# script:
# - cargo run --target x86_64-apple-darwin
# - cargo test --target x86_64-apple-darwin
#
# TODO: Leak sanitizer works only with x86_64-unknown-linux-gnu
#- env: TARGET=x86_64-apple-darwin RUSTFLAGS="-Z sanitizer=leak"
# os: osx
# script:
# - cargo run --target x86_64-apple-darwin
# - cargo test --target x86_64-apple-darwin
# All of this is required to run code coverage for out project using CodeCov.
# See https://github.com/codecov/example-rust
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-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 &&
for file in target/debug/skiplist-*[^\.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"