forked from bolcom/libunftp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (30 loc) · 902 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
language: rust
services:
- docker
rust:
- stable
- beta
- nightly
os:
- linux
- osx
- windows
before_script:
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export IGN=""; else export IGN="--exclude unftp-auth-pam"; fi
- rm -rf "$TRAVIS_HOME/.cargo/registry/src"
- rustup component add rustfmt
- if [ $TRAVIS_RUST_VERSION != 'nightly' ]; then rustup component add clippy; else rustup component add clippy --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy; fi
cache: cargo
script:
- cargo fmt --all -- --check
- cargo clippy --verbose --workspace
- cargo test --verbose --workspace --exclude unftp-sbe-gcs $IGN
- cargo test --doc --workspace
- cargo build --verbose --workspace
- cargo build --examples --workspace
matrix:
allow_failures:
- rust: nightly
- rust: beta
- os: windows
fast_finish: true