-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
28 lines (28 loc) · 975 Bytes
/
Copy path.travis.yml
File metadata and controls
28 lines (28 loc) · 975 Bytes
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
language: rust
rust:
- stable
- nightly
os: linux
cache: cargo
jobs:
include:
- name: codecov
rust: nightly
before_install: |
curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf -
env:
- CARGO_INCREMENTAL=0
- RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
- RUSTDOCFLAGS="-Cpanic=abort"
before_script: |
find . \( -name "swc2dot*.gc*" \) -exec rm {} \;
script:
- cargo build --verbose $CARGO_OPTIONS
- cargo test --verbose $CARGO_OPTIONS
- |
zip -0 ccov.zip `find . \( -name "swc2dot*.gc*" \) -print`;
./grcov ccov.zip -s . -t lcov --llvm --branch --ignore-not-existing --ignore "/*" -o lcov.info;
bash <(curl -s https://codecov.io/bash) -f lcov.info;
allow_failures:
- rust: nightly
fast_finish: true