/
.travis.yml
50 lines (40 loc) · 1.03 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
dist: trusty
language: rust
services: docker
sudo: required
addons:
apt:
packages:
- libssl-dev
rust:
- stable
- beta
- nightly
env:
- TARGET=i686-unknown-linux-gnu
- TARGET=i686-unknown-linux-musl
- TARGET=x86_64-unknown-linux-gnu
- TARGET=x86_64-unknown-linux-musl
matrix:
allow_failures:
- rust: nightly
- env: TARGET=i686-unknown-linux-gnu
- env: TARGET=i686-unknown-linux-musl
before_install:
- set -e
- rustup self update
install:
- sh ci/install.sh
script:
- bash ci/script.sh
after_script:
- set +e
after_success: |
if [[ $TRAVIS_OS_NAME == "linux" ]] && [[ $TRAVIS_RUST_VERSION == "nightly" ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
# Uncomment the following line for coveralls.io
# cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
# Uncomment the following two lines create and upload a report for codecov.io
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
fi