Skip to content

Commit f892647

Browse files
committed
Auto merge of #13850 - eddiewebb:patch-1, r=epage
Update continuous-integration.md: Include CircleCI reference ### What does this PR try to resolve? Adds simple example to run `cargo test` on CircleCI, alongside the other popular CI engines. ### How should we test and review this PR? Change is purely documentation. I would ask that the PR be checked for tone and formatting that is in line with Rust/Cargo community standards.
2 parents 1a0e77f + e62ef14 commit f892647

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/doc/src/guide/continuous-integration.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,25 @@ channel, but any breakage in nightly will not fail your overall build. Please
105105
see the [builds.sr.ht documentation](https://man.sr.ht/builds.sr.ht/) for more
106106
information.
107107

108+
109+
### CircleCI
110+
111+
To test your package on CircleCI, here is a sample `.circleci/config.yml` file:
112+
113+
```yaml
114+
version: 2.1
115+
jobs:
116+
build:
117+
docker:
118+
# check https://circleci.com/developer/images/image/cimg/rust#image-tags for latest
119+
- image: cimg/rust:1.77.2
120+
steps:
121+
- checkout
122+
- run: cargo test
123+
```
124+
125+
To run more complex pipelines, including flaky test detection, caching, and artifact management, please see [CircleCI Configuration Reference](https://circleci.com/docs/configuration-reference/).
126+
108127
## Verifying Latest Dependencies
109128

110129
When [specifying dependencies](../reference/specifying-dependencies.md) in

0 commit comments

Comments
 (0)