dtparse/.travis.yml

41 lines
887 B
YAML
Raw Normal View History

2018-06-08 23:37:31 -04:00
language: rust
2018-08-03 21:48:09 -04:00
2020-06-11 12:10:37 -04:00
jobs:
2018-08-03 21:48:09 -04:00
include:
2020-06-11 12:10:37 -04:00
- rust: stable
os: linux
- rust: 1.28.0
os: linux
2020-06-11 13:05:21 -04:00
env: DISABLE_TOOLS=true
2020-06-11 12:10:37 -04:00
- rust: stable
os: osx
- rust: stable-msvc
os: windows
- rust: stable
os: windows
cache:
- cargo
before_script:
- rustup show
# CMake doesn't like the `sh.exe` provided by Git being in PATH
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then rm "C:/Program Files/Git/usr/bin/sh.exe"; fi
2020-06-11 13:06:26 -04:00
- if [[ "$DISABLE_TOOLS" == "" ]]; then rustup component add clippy; rustup component add rustfmt; fi
2018-08-03 21:48:09 -04:00
2020-06-11 12:10:37 -04:00
script:
2020-06-11 13:06:26 -04:00
- if [[ "$DISABLE_TOOLS" == "" ]]; then cargo clippy --all && cargo fmt --all -- --check; fi
2018-08-03 21:48:09 -04:00
2020-06-11 12:10:37 -04:00
# For default build, split up compilation and tests so we can track build times
- cargo test --no-run
- cargo test
- cargo test --release --no-run
- cargo test --release
2018-08-03 21:48:09 -04:00
branches:
only:
- master
2020-06-11 12:10:37 -04:00
- staging
- trying