forked from pest-parser/pest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (45 loc) · 953 Bytes
/
.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
sudo: required
language: rust
cache: cargo
os:
- linux
rust:
- stable
- nightly
matrix:
allow_failures:
- rust: nightly
fast_finish: true
addons:
apt:
packages:
- libssl-dev
- pkg-config
- cmake
- zlib1g-dev
git:
depth: 1
branches:
only:
- staging
- trying
- master
notifications:
email: false
install:
- rustup component add clippy-preview
script:
# Need a custom script because we are using cargo workspaces.
- |
cargo bootstrap && # dynamic build dependency of pest_meta
cargo clippy --all --verbose -- -D clippy &&
cargo build --all --verbose &&
cargo test --all --verbose &&
cargo doc --all --verbose
after_success:
- |
if [[ $TRAVIS_RUST_VERSION =~ nightly ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
cargo tarpaulin --out Xml &&
bash <(curl -s https://codecov.io/bash)
fi