Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce code style on CI with rustfmt #39

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ matrix:
rust: stable
before_script:
- rustup component add clippy-preview
- rustup component add rustfmt
script:
- cargo clippy --all-targets --all-features -- -D warnings
- cargo fmt --all -- --check
- cargo test --verbose
- cargo build --release --target $TARGET --locked
<<: *DEPLOY_TO_GITHUB
Expand All @@ -57,8 +59,10 @@ matrix:
rust: nightly
before_script:
- rustup component add clippy-preview
- rustup component add rustfmt
script:
- cargo clippy --all-targets --all-features -- -D warnings
- cargo fmt --all -- --check
- cargo test --verbose
- cargo build --verbose

Expand All @@ -68,8 +72,10 @@ matrix:
rust: stable
before_script:
- rustup component add clippy-preview
- rustup component add rustfmt
script:
- cargo clippy --all-targets --all-features -- -D warnings
- cargo fmt --all -- --check
- cargo test --verbose
- cargo build --release --target $TARGET --locked
<<: *DEPLOY_TO_GITHUB
Expand All @@ -88,7 +94,9 @@ matrix:
rust: nightly
before_script:
- rustup component add clippy-preview
- rustup component add rustfmt
script:
- cargo clippy --all-targets --all-features -- -D warnings
- cargo fmt --all -- --check
- cargo test --verbose
- cargo build --verbose