2019-09-19 22:33:59 -04:00
|
|
|
language: rust
|
2020-01-12 20:10:56 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- rust: stable
|
|
|
|
os: linux
|
2020-01-12 20:58:31 -05:00
|
|
|
- rust: 1.34.0
|
2020-01-12 20:26:08 -05:00
|
|
|
os: linux
|
2020-01-12 20:10:56 -05:00
|
|
|
- rust: stable
|
|
|
|
os: osx
|
|
|
|
- rust: stable-msvc
|
|
|
|
os: windows
|
2019-09-19 22:33:59 -04:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- cargo
|
|
|
|
|
2019-09-19 22:47:07 -04:00
|
|
|
before_script:
|
2020-01-12 19:05:43 -05:00
|
|
|
- rustup show
|
2020-01-12 19:33:04 -05:00
|
|
|
# CMake doesn't like the `sh.exe` provided by Git being in PATH
|
2020-01-12 18:44:32 -05:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then rm "C:/Program Files/Git/usr/bin/sh.exe"; fi
|
2020-01-12 19:36:42 -05:00
|
|
|
- rustup component add clippy
|
|
|
|
- rustup component add rustfmt
|
2019-09-19 22:47:07 -04:00
|
|
|
|
2019-09-19 22:33:59 -04:00
|
|
|
script:
|
2020-01-12 18:15:28 -05:00
|
|
|
- cargo clippy --all
|
|
|
|
- cargo fmt --all -- --check
|
|
|
|
|
2019-10-07 22:17:14 -04:00
|
|
|
- cargo test --no-run
|
2019-09-19 22:33:59 -04:00
|
|
|
- cargo test
|
2019-10-07 22:17:14 -04:00
|
|
|
- cargo test --release --no-run
|
2019-09-19 22:33:59 -04:00
|
|
|
- cargo test --release
|
|
|
|
|
2020-01-12 16:47:29 -05:00
|
|
|
- cd aeron-driver-sys/
|
2019-10-07 22:17:14 -04:00
|
|
|
- cargo test --features "static"
|
2019-10-07 19:26:33 -04:00
|
|
|
|
2019-10-07 22:57:27 -04:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- staging
|
|
|
|
- trying
|
|
|
|
|