monolith/.travis.yml

38 lines
574 B
YAML
Raw Normal View History

2019-08-24 18:17:52 +02:00
language: rust
cache: cargo
os:
2020-03-03 05:56:17 +01:00
- linux
- osx
- windows
2019-08-24 18:17:52 +02:00
rust:
2020-03-03 05:56:17 +01:00
- stable
- beta
- nightly
services:
- docker
2019-08-24 18:17:52 +02:00
before_script:
2020-03-03 05:56:17 +01:00
- rustup component add rustfmt
2019-08-24 18:17:52 +02:00
script:
2020-03-03 05:56:17 +01:00
- cargo build --all --locked --verbose
- cargo test --all --locked --verbose
- |
if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then
cargo fmt --all -- --check
fi
after_success: |
if [ "${TRAVIS_OS_NAME}" == linux ] && [ "${TRAVIS_RUST_VERSION}" == stable ]; then
docker build -t monolith .
docker run monolith monolith -V
fi
jobs:
allow_failures:
2020-03-03 05:56:17 +01:00
- rust: nightly
fast_finish: true