lighthouse/.travis.yml
Paul Hauner bf1795a94e
Move rustfmt check down in travis yml
This is because we need to make sure the protos build before rustfmt
runs.
2019-01-22 15:14:04 +11:00

23 lines
618 B
YAML

language: rust
before_install:
- curl -OL https://github.com/google/protobuf/releases/download/v3.4.0/protoc-3.4.0-linux-x86_64.zip
- unzip protoc-3.4.0-linux-x86_64.zip -d protoc3
- sudo mv protoc3/bin/* /usr/local/bin/
- sudo mv protoc3/include/* /usr/local/include/
- sudo chown $USER /usr/local/bin/protoc
- sudo chown -R $USER /usr/local/include/google
script:
- cargo build --verbose --all
- cargo test --verbose --all
- cargo fmt --all -- --check
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
fast_finish: true
install:
- rustup component add rustfmt