forked from paholg/dimensioned
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (49 loc) · 1.42 KB
/
.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
49
50
51
52
53
language: rust
cache: cargo
sudo: false
notifications:
email:
recipients: paho@paholg.com
branches:
only:
- master
matrix:
include:
- rust: 1.23.0
script: |
set -e
cargo build
cargo test --features "ci"
- rust: stable
before_script:
- rustup component add rustfmt-preview
script: |
set -e
cargo fmt --version
cargo fmt --all -- --check
cargo build
cargo test --features "test"
cargo doc
after_success: |
set -e
if [ "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "master" ]; then
cargo publish --token ${CRATESIO_TOKEN}
fi
- rust: beta
script: |
set -e
cargo build
cargo test --features "test"
- rust: nightly
before_script:
- rustup component add clippy-preview
script: |
set -e
cargo clippy --version
cargo clippy
cargo test --no-default-features --features "ci nightly"
cargo test --all-features
env:
global:
- secure: ZKVATaNNGsoAdISoshGxDt82Ie4lgbrn91cRK+hjQvtAJjlWva554l49P5RU6T4ZkGFC2PyQ/zF8jMmNsPJUeQ3F2E4v1NVw83CrSoqIRmtDzN6kgblshPAZVX8xNsEZarEV+dw+CTA7a5c0J0Nm38lIaxwuntvO47x8Zf0RFZc=
- secure: YOsYYXcwIx8UZgcI4pPMi6sH6QLYGWpkogQLO53yQYzzpshw1XeKI+QD2Zx5zpUtocyP37zWJwvZZLEcs9auy4W2lrsFrwz0yB3PfzqOo9vDsxcAfm8Ycb+Uvvplwd6DUmRwqAp7XJqzbcL1K0MNezY9+bmE78JVG3WeGn2GGO0=