aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 04ebecf3de3a37739260c903c5ab08701004ad1f (plain) (blame)
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
language: rust
rust:
  - stable
  - beta
  - nightly
cache: cargo

matrix:
  allow_failures:
    - rust: nightly
  fast_finish: true

before_cache:
  - |
    if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then
      cargo install -f cargo-tarpaulin
    fi
before_script:
  - export PATH="$PATH:~/.cargo/bin"
script:
  - cargo build --verbose --all
  - cargo test --verbose --all
after_success:
  - |
    if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then
      cargo tarpaulin --out Xml
      bash <(curl -s https://codecov.io/bash)
      echo "Uploaded code coverage"
    fi