]> git.lizzy.rs Git - PAKEs.git/blob - .travis.yml
travis: add rustfmt, ignore WIP-* branches
[PAKEs.git] / .travis.yml
1 language: rust
2
3 rust:
4   - stable
5   - beta
6   - nightly
7
8 os:
9   - linux
10   - osx
11
12 branches:
13   except:
14     - /^WIP-.*$/
15
16 matrix:
17   include:
18     - rust: 1.26.0 # lock down for consistent rustfmt behavior
19       env: RUSTFMT
20       install:
21         - rustup component add rustfmt-preview
22       script:
23         - cargo fmt -- --write-mode=diff
24   allow_failures:
25     - rust: nightly
26
27 script:
28   - cargo clean
29   - cargo build --verbose --all
30 #  - cargo run --verbose --example XYZ
31 #  - cargo test --verbose --features "test" --all
32   - cargo test --verbose --all
33
34 after_success: |
35   if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
36     bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
37     # Uncomment the following two lines create and upload a report for codecov.io
38     cargo tarpaulin --out Xml
39     bash <(curl -s https://codecov.io/bash)
40   fi