minicrossterm/.travis.yml

41 lines
847 B
YAML
Raw Normal View History

2018-11-23 02:05:08 +11:00
# Set up the Rust toolchain.
language: rust
2018-11-23 02:05:08 +11:00
rust:
- stable
- nightly
2018-11-23 02:05:08 +11:00
os:
- linux
- windows
- 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:
- cargo fmt --version
- rustup --version
- rustc --version
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then cargo fmt --all -- --check; fi
- cargo build
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then cargo test --all -- --nocapture --test-threads 1; else cargo test --all --exclude crossterm_winapi -- --nocapture --test-threads 1; fi
2019-09-16 21:34:08 +10:00
- |
pushd examples/program_examples
for d in */ ; do
pushd "$d"
cargo build
if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then cargo fmt --all -- --check; fi
popd
done
popd