Skip to content

Commit e62ef14

Browse files
authored
Update continuous-integration.md: Include CircleCI reference
Adds simple example to run `cargo test` on CircleCI
1 parent 8733d5a commit e62ef14

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)