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
|
|
|
|
2019-09-22 02:06:00 +02:00
|
|
|
before_script:
|
2020-03-03 05:56:17 +01:00
|
|
|
- rustup component add rustfmt
|
2019-09-22 02:06:00 +02:00
|
|
|
|
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
|
2019-12-13 01:53:43 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
allow_failures:
|
2020-03-03 05:56:17 +01:00
|
|
|
- rust: nightly
|
2019-12-13 01:53:43 +01:00
|
|
|
fast_finish: true
|