-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
64 lines (52 loc) · 1.64 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
dist: trusty
language: rust
sudo: true
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- libiberty-dev
- g++
# ignoring 32-bit targets until a proper 32-bit environment is provided.
# see https://github.com/travis-ci/travis-ci/issues/986
matrix:
include:
- os: linux
rust: 1.40.0
env: ARCH=x86_64
- os: linux
rust: stable
env: ARCH=x86_64
- os: linux
rust: beta
env: ARCH=x86_64
- os: linux
rust: nightly
env: ARCH=x86_64
- os: osx
osx_image: xcode11.3
rust: stable
env: ARCH=x86_64
install:
- rustc -vV
- cargo -vV
# Install kcov.
- mkdir -p ~/.cargo/bin
- sh src/install_kcov.sh
- export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$HOME/Library/Python/2.7/bin:$PATH
- export RUSTFLAGS="-C link-dead-code"
- kcov --version
# See https://github.com/rust-lang/rust/issues/38380
- if [ $TRAVIS_OS_NAME = osx ]; then brew unlink python2 && brew unlink python3; fi
script:
- cargo build
- cargo test
# Note: we skip the `check-specimen` test in coverage because kcov cannot do recursive-ptrace.
# Track this file: https://github.com/SimonKagstrom/kcov/blob/master/tests/recursive-ptrace/main.cc
#
# Note: disable covering macOS, otherwise we will timeout.
# see https://travis-ci.org/kennytm/cargo-kcov/jobs/376598886
- if [ $TRAVIS_OS_NAME = linux ]; then cargo run -- kcov --verbose --no-clean-rebuild --lib --coveralls; fi