forked from bitcoin-core/guix.sigs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
23 lines (22 loc) · 843 Bytes
/
.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
container:
image: ubuntu:jammy
cpu: 1
memory: 1G
lint_task:
use_compute_credits: true
only_if: $CIRRUS_BASE_BRANCH == 'main'
stateful: false # https://cirrus-ci.org/guide/writing-tasks/#stateful-tasks
setup_script: apt-get update && apt-get install -y git libgpgme-dev
merge_base_script:
- git fetch $CIRRUS_REPO_CLONE_URL "pull/${CIRRUS_PR}/merge"
- git checkout FETCH_HEAD # Derive full diff based on merge commit, see lint_script
cargo_target_cache:
folder: out-dir
fingerprint_script: git log -1 -- ./contrib/touched-files-check/ .cirrus.yml
populate_script:
- mkdir out-dir
- apt-get install -y cargo
- cd ./contrib/touched-files-check
- cargo build
- mv ./target/debug/touched-files-check ./../../out-dir/
lint_script: ./out-dir/touched-files-check "HEAD~..HEAD"