forked from rust-headless-chrome/rust-headless-chrome
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
48 lines (40 loc) · 939 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
46
47
48
language: rust
rust:
- stable
- nightly
addons:
chrome: stable
apt:
packages:
- libnss3
os:
- linux
- osx
services:
- xvfb
before_install:
- set -e
- export RUSTFLAGS="-D warnings"
- if [ "$TRAVIS_RUST_VERSION" != "nightly" ]; then
rustup self update &&
rustup component add rustfmt clippy &&
cargo clippy --version;
fi
before_cache:
- cargo install cargo-prune || echo "already installed"
- cargo prune
cache:
cargo: true
directories:
- $HOME/.local/share/
- $HOME/Library/Application Support/
script:
- if [ "$TRAVIS_RUST_VERSION" != "nightly" ]; then
cargo fmt --all -- --check &&
cargo clippy --all --tests --examples;
fi
- env RUST_BACKTRACE=1 RUST_LOG=headless_chrome=trace cargo test -- --nocapture
- cargo test --no-default-features
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
cargo test --doc --features nightly -- README;
fi