2019-09-19 22:33:59 -04:00
|
|
|
language: rust
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
- windows
|
|
|
|
|
|
|
|
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:33:04 -05:00
|
|
|
# MinGW doesn't implement the `poll` functions we need, so default to MSVC
|
|
|
|
# TODO: Attempt compilation with MSYS on Travis
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then rustup default stable-x86_64-pc-windows-msvc; 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
|
|
|
|
|