2018-11-23 02:05:08 +11:00
|
|
|
# Set up the Rust toolchain.
|
|
|
|
language: rust
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- nightly
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- export PATH=$PATH:/home/travis/.cargo/bin
|
2019-01-03 02:53:47 +11:00
|
|
|
- rustup component add rustfmt-preview
|
2018-11-23 02:05:08 +11:00
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
- windows
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
script:
|
2018-11-23 02:14:27 +11:00
|
|
|
- cargo build
|
2019-01-03 02:53:47 +11:00
|
|
|
- cargo fmt -- --check
|