mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 02:55:47 -04:00
travis: Add a lint stage.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user