-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
44 lines (40 loc) · 886 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
# vim: ts=2 sw=2 :
---
language: rust
cache: cargo
services:
- docker
jobs:
allow_failures:
- rust: nightly
include:
# MSRV
- os: linux
arch: amd64
rust: 1.39.0
# The Rust team appreciates testing against the beta and nightly channels,
# even if you're only targeting stable.
# https://docs.travis-ci.com/user/languages/rust
- os: linux
arch: amd64
rust: stable
env: KRS_RUN_TESTS=1
- os: linux
arch: amd64
rust: beta
- os: linux
arch: amd64
rust: nightly
- os: osx
rust: stable
before_script:
- if [[ "$KRS_RUN_TESTS" ]]; then rustup component add clippy rustfmt; fi
script:
- |
if [[ "$KRS_RUN_TESTS" ]]; then
cargo fmt -- --check &&
cargo clippy --all-targets -- -D warnings &&
./test.sh --no-fail-fast
else
cargo build --verbose
fi