-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
200 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
# TemplateCIConfig { bench: BenchEntry(MatrixEntry { run: false, version: "nightly", install_commandline: None, commandline: "cargo bench" }), clippy: ClippyEntry(MatrixEntry { run: true, version: "stable", install_commandline: Some("rustup component add clippy"), commandline: "cargo clippy -- -D warnings" }), rustfmt: RustfmtEntry(MatrixEntry { run: true, version: "stable", install_commandline: Some("rustup component add rustfmt"), commandline: "cargo fmt -v -- --check" }), additional_matrix_entries: {}, cache: "cargo", os: "linux", dist: "xenial", versions: ["stable", "nightly"], test_commandline: "cargo test --verbose --all" } | ||
version: "2.1" | ||
|
||
executors: | ||
stable: | ||
docker: | ||
- image: liuchong/rustup:stable | ||
nightly: | ||
docker: | ||
- image: liuchong/rustup:nightly | ||
beta: | ||
docker: | ||
- image: liuchong/rustup:beta | ||
|
||
commands: | ||
cargo_test: | ||
description: "Run `cargo test`" | ||
steps: | ||
- run: | ||
name: "Clean out rust-toolchain" | ||
command: "rm -f rust-toolchain" | ||
- run: | ||
name: "Toolchain debug info" | ||
command: "rustc --version" | ||
- run: | ||
name: Test | ||
command: "cargo test" | ||
|
||
jobs: | ||
test: | ||
parameters: | ||
version: | ||
type: executor | ||
executor: << parameters.version >> | ||
steps: | ||
- checkout | ||
- cargo_test | ||
|
||
rustfmt: | ||
parameters: | ||
version: | ||
type: executor | ||
executor: << parameters.version >> | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install | ||
command: rustup component add rustfmt | ||
- run: | ||
name: Rustfmt | ||
command: cargo fmt -v -- --check | ||
|
||
clippy: | ||
parameters: | ||
version: | ||
type: executor | ||
executor: << parameters.version >> | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install | ||
command: rustup component add clippy | ||
- run: | ||
name: Clippy | ||
command: cargo clippy -- -D warnings | ||
|
||
bench: | ||
parameters: | ||
version: | ||
type: executor | ||
executor: << parameters.version >> | ||
steps: | ||
- checkout | ||
- run: | ||
name: Bench | ||
command: cargo bench | ||
|
||
ci_success: | ||
docker: | ||
- image: alpine:latest | ||
steps: | ||
- run: | ||
name: Success | ||
command: "echo yay" | ||
|
||
workflows: | ||
continuous_integration: | ||
jobs: | ||
- test: | ||
name: test-stable | ||
version: stable | ||
filters: { | ||
"branches": { | ||
"ignore": [ | ||
"/.*\\.tmp/" | ||
] | ||
}, | ||
"tags": { | ||
"only": [ | ||
"/^v\\d+\\.\\d+\\.\\d+.*$/" | ||
] | ||
} | ||
} | ||
- test: | ||
name: test-nightly | ||
version: nightly | ||
filters: { | ||
"branches": { | ||
"ignore": [ | ||
"/.*\\.tmp/" | ||
] | ||
}, | ||
"tags": { | ||
"only": [ | ||
"/^v\\d+\\.\\d+\\.\\d+.*$/" | ||
] | ||
} | ||
} | ||
- rustfmt: | ||
version: stable | ||
filters: { | ||
"branches": { | ||
"ignore": [ | ||
"/.*\\.tmp/" | ||
] | ||
}, | ||
"tags": { | ||
"only": [ | ||
"/^v\\d+\\.\\d+\\.\\d+.*$/" | ||
] | ||
} | ||
} | ||
- clippy: | ||
version: stable | ||
filters: { | ||
"branches": { | ||
"ignore": [ | ||
"/.*\\.tmp/" | ||
] | ||
}, | ||
"tags": { | ||
"only": [ | ||
"/^v\\d+\\.\\d+\\.\\d+.*$/" | ||
] | ||
} | ||
} | ||
- ci_success: | ||
requires: | ||
- test-stable | ||
- test-nightly | ||
- rustfmt | ||
- clippy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Don't forget to update permissions and add this repo in | ||
# https://app.bors.tech/repositories so bors can see the new repo! | ||
|
||
status = [ | ||
"ci/circleci: ci_success", | ||
] | ||
timeout_sec = 300 | ||
delete_merged_branches = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters