-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #743 from wookietreiber/book/verification-in-ci
- Loading branch information
Showing
12 changed files
with
79 additions
and
127 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
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,22 @@ | ||
# GitLab CI/CD | ||
|
||
Use this snippet to have a dedicated [job](https://docs.gitlab.com/ee/ci/jobs/) | ||
in the [test stage of your pipeline](https://docs.gitlab.com/ee/ci/pipelines/): | ||
|
||
```yml | ||
msrv: | ||
stage: test | ||
image: | ||
name: foresterre/cargo-msrv:latest | ||
entrypoint: [""] | ||
before_script: | ||
- rustc --version | ||
- cargo --version | ||
- cargo msrv --version | ||
script: | ||
- cargo msrv --output-format minimal verify | ||
``` | ||
|
||
**Note:** The empty `entrypoint` is necessary because the image has | ||
`cargo-msrv` as its entrypoint. Since we want to run other commands, like | ||
`cargo --version`, GitLab requires either an empty entrypoint or a shell. |
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,4 @@ | ||
# Verification in CI | ||
|
||
You can run `cargo msrv verify` in continuous integration services to check the | ||
MSRV with every contribution. |
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
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
Oops, something went wrong.