forked from innoave/genevo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (35 loc) · 868 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
language: rust
rust:
- stable
- beta
- nightly
- 1.35.0
os:
- linux
dist: trusty
addons:
apt:
packages:
- libssl-dev
matrix:
allow_failures:
- rust: nightly
fast_finish: true
cache: cargo
before_cache: |
rm -rf "$TRAVIS_HOME/.cargo/registry/src"
if [[ "$TRAVIS_RUST_VERSION" == beta && "$TRAVIS_OS_NAME" == "linux" ]]; then
cargo install cargo-tarpaulin -f
fi
script:
- cargo build --verbose
- cargo test --verbose
- cargo build --all-features --verbose
- cargo test --all-features --verbose
- cargo build --examples --verbose
- cargo build --example knapsack --features "smallvec" --verbose
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == beta && "$TRAVIS_OS_NAME" == "linux" ]]; then
cargo tarpaulin --out Xml --all-features --ignore-tests --verbose
bash <(curl -s https://codecov.io/bash)
fi