forked from containers/aardvark-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
43 lines (37 loc) · 1 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
validate_task:
alias: "validate"
name: "validate"
container:
image: docker.io/library/rust
install_script: rustup component add rustfmt
test_script: cargo-fmt --all
test_task:
alias: "build_and_test"
name: "Build and Test"
container:
image: docker.io/library/rust
build_script:
- make debug=1
- make
test_script: cargo test
# TODO: Artifact collection should happen in "success" task.
# Artifact archive always uses relative paths, ensure archive is clean.
artifacts_prep_script:
- mkdir /tmp/artifacts
- mv bin/aardvark-dns* /tmp/artifacts/
- rm -rf ./aardvark-dns*
- mv /tmp/artifacts/aardvark-dns* ./
# Upload tested binary for consumption downstream
# https://cirrus-ci.org/guide/writing-tasks/#artifacts-instruction
binary_artifacts:
path: ./aardvark-dns*
success_task:
name: "Total success"
depends_on:
- "validate"
- "build_and_test"
clone_script: /bin/true
script: /bin/true
container:
image: docker.io/library/alpine