travis: Add a lint stage.

This commit is contained in:
Damir Jelić 2020-07-07 16:48:45 +02:00
parent 583dbb07a5
commit 18f6cbc23a

View file

@ -7,10 +7,17 @@ addons:
jobs:
include:
- stage: Lint
- os: linux
script:
- cargo fmt --all -- --check
- stage: Test
- os: linux
dist: bionic
- os: osx
- os: linux
name: Coverage
before_script:
@ -43,11 +50,9 @@ jobs:
cargo test --target wasm32-unknown-unknown --no-default-features
before_script:
- rustup component add rustfmt
script:
- cargo fmt --all -- --check
- cargo build
- cargo test