2019-10-02 17:14:40 +10:00
|
|
|
# Build only pushed (merged) master or any pull request. This avoids the
|
|
|
|
# pull request to be build twice.
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2018-11-23 02:05:08 +11:00
|
|
|
language: rust
|
2019-09-16 04:42:12 +10:00
|
|
|
|
2018-11-23 02:05:08 +11:00
|
|
|
rust:
|
2019-01-28 07:16:14 +11:00
|
|
|
- stable
|
2019-09-16 04:42:12 +10:00
|
|
|
- nightly
|
2018-11-23 02:05:08 +11:00
|
|
|
|
|
|
|
os:
|
2019-01-28 07:16:14 +11:00
|
|
|
- linux
|
|
|
|
- windows
|
2019-09-16 04:42:12 +10:00
|
|
|
- osx
|
|
|
|
|
|
|
|
git:
|
|
|
|
depth: 1
|
|
|
|
quiet: true
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- export PATH=$PATH:/home/travis/.cargo/bin
|
|
|
|
- rustup component add rustfmt
|
2018-11-23 02:05:08 +11:00
|
|
|
|
|
|
|
script:
|
2019-09-16 04:42:12 +10:00
|
|
|
- cargo fmt --version
|
|
|
|
- rustup --version
|
|
|
|
- rustc --version
|
|
|
|
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then cargo fmt --all -- --check; fi
|
2019-01-28 07:16:14 +11:00
|
|
|
- cargo build
|
2019-09-26 00:09:16 +10:00
|
|
|
- cargo test --all-features -- --nocapture --test-threads 1
|
2019-10-23 01:33:38 +11:00
|
|
|
- cargo test --features cursor -- --nocapture --test-threads 1
|
|
|
|
- cargo test --features style -- --nocapture --test-threads 1
|
|
|
|
- cargo test --features terminal -- --nocapture --test-threads 1
|
|
|
|
- cargo test --features screen -- --nocapture --test-threads 1
|
|
|
|
- cargo test --features input -- --nocapture --test-threads 1
|