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

Make rustfmt&clippy run on stable #3

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions .travis.yml
@@ -1,4 +1,4 @@
# TemplateCIConfig { bench: BenchEntry { run: false, version: "nightly", allow_failure: false, install_commandline: None, commandline: "cargo bench" }, clippy: ClippyEntry { run: true, version: "nightly", allow_failure: false, install_commandline: None, commandline: "cargo clippy -- -D warnings" }, rustfmt: RustfmtEntry { run: true, version: "stable", allow_failure: false, install_commandline: None, commandline: "cargo fmt" }, additional_matrix_entries: {"something_custom": CustomEntry { run: false, version: "stable", allow_failure: false, install_commandline: Some("echo \"installing for custom tests\""), commandline: "echo \"running custom tests\"" }}, os: "linux", dist: "xenial", versions: ["stable", "beta", "nightly"], test_commandline: "cargo test --verbose --all" }
# TemplateCIConfig { bench: BenchEntry { run: false, version: "nightly", allow_failure: false, install_commandline: None, commandline: "cargo bench" }, clippy: ClippyEntry { run: true, version: "stable", allow_failure: false, install_commandline: None, commandline: "cargo clippy -- -D warnings" }, rustfmt: RustfmtEntry { run: true, version: "stable", allow_failure: false, install_commandline: None, commandline: "cargo fmt" }, additional_matrix_entries: {"something_custom": CustomEntry { run: false, version: "stable", allow_failure: false, install_commandline: Some("echo \"installing for custom tests\""), commandline: "echo \"running custom tests\"" }}, cache: "cargo", os: "linux", dist: "xenial", versions: ["stable", "beta", "nightly"], test_commandline: "cargo test --verbose --all" }
os:
- "linux"
dist: "xenial"
Expand Down Expand Up @@ -28,7 +28,7 @@ matrix:
- RUN_RUSTFMT=true
- RUN_TEST=false
- &clippy_build
rust: "nightly"
rust: "stable"
env:
- RUN_CLIPPY=true
- RUN_TEST=false
Expand All @@ -41,12 +41,12 @@ matrix:

before_script:
- bash -c 'if [[ "$RUN_RUSTFMT" == "true" ]]; then
rustup component add rustfmt-preview
rustup component add rustfmt
;
fi'
- bash -c 'if [[ "$RUN_CLIPPY" == "true" ]]; then
rm -f ~/.cargo/bin/clippy;
rustup component add clippy-preview
rustup component add clippy
;
fi'
- bash -c 'if [[ "$RUN_SOMETHING_CUSTOM" == "true" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Expand Up @@ -99,7 +99,7 @@ define_matrix_entry!(
ClippyEntry,
(
true,
"nightly",
"stable",
false,
Some("cargo clippy -- -D warnings".to_owned())
)
Expand Down
4 changes: 2 additions & 2 deletions templates/travis.yml
Expand Up @@ -65,14 +65,14 @@ matrix:
before_script:
{%- if rustfmt.run %}
- bash -c 'if [[ "$RUN_RUSTFMT" == "true" ]]; then
rustup component add rustfmt-preview
rustup component add rustfmt
;
fi'
{%- endif %}
{%- if clippy.run %}
- bash -c 'if [[ "$RUN_CLIPPY" == "true" ]]; then
rm -f ~/.cargo/bin/clippy;
rustup component add clippy-preview
rustup component add clippy
;
fi'
{%- endif %}
Expand Down