2016-02-21 18:20:03 -05:00
|
|
|
language: rust
|
|
|
|
sudo: false
|
|
|
|
|
2018-10-16 13:02:52 -04:00
|
|
|
git:
|
|
|
|
depth: 1
|
|
|
|
|
2016-06-14 10:55:00 -04:00
|
|
|
cache: cargo
|
|
|
|
|
2016-06-14 10:53:45 -04:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2018-10-16 13:02:52 -04:00
|
|
|
- windows
|
2016-06-14 10:53:45 -04:00
|
|
|
|
2016-02-21 18:20:03 -05:00
|
|
|
rust:
|
2017-02-02 23:50:48 -05:00
|
|
|
- stable
|
2017-06-14 12:56:45 -04:00
|
|
|
- nightly
|
|
|
|
|
2018-01-05 20:42:55 -05:00
|
|
|
env:
|
2018-06-17 05:19:30 -04:00
|
|
|
- CLIPPY="true"
|
|
|
|
- CLIPPY=""
|
|
|
|
|
|
|
|
install:
|
2018-07-21 20:44:14 -04:00
|
|
|
- if [ -n "$CLIPPY" ]; then rustup component add clippy-preview; fi
|
2018-01-05 20:42:55 -05:00
|
|
|
|
2017-06-14 12:56:45 -04:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2018-01-05 20:42:55 -05:00
|
|
|
exclude:
|
|
|
|
- rust: stable
|
2018-06-17 05:19:30 -04:00
|
|
|
env: CLIPPY="true"
|
2018-01-05 20:42:55 -05:00
|
|
|
- rust: nightly
|
2018-06-17 05:19:30 -04:00
|
|
|
env: CLIPPY=""
|
2017-06-14 12:56:45 -04:00
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
2018-10-16 13:02:52 -04:00
|
|
|
- os: windows
|
2016-02-21 18:20:03 -05:00
|
|
|
|
|
|
|
script:
|
2018-10-16 13:02:52 -04:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "windows" ]; then choco install llvm --norestart --nosilent; fi
|
|
|
|
|
2018-07-01 16:20:29 -04:00
|
|
|
- if [ -n "$CLIPPY" ]; then cargo clippy --all-features --all-targets; fi
|
2018-06-17 05:19:30 -04:00
|
|
|
- if [ -z "$CLIPPY" ]; then cargo test; fi
|
2018-07-25 15:46:45 -04:00
|
|
|
- if [ -z "$CLIPPY" ]; then cargo test -p font; fi
|
2018-10-19 01:08:45 -04:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "windows" ]; then cp target/debug/winpty-agent.exe target/debug/deps && cargo test -p winpty; fi
|