forked from containers/common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
70 lines (57 loc) · 1.73 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
# Main collection of env. vars to set for all tasks and scripts.
env:
####
#### Global variables used for all tasks
####
# Overrides default location (/tmp/cirrus) for repo clone
GOPATH: &gopath "/var/tmp/go"
GOBIN: "${GOPATH}/bin"
GOCACHE: "${GOPATH}/cache"
GOSRC: &gosrc "/var/tmp/go/src/github.com/containers/common"
CIRRUS_WORKING_DIR: *gosrc
# The default is 'sh' if unspecified
CIRRUS_SHELL: "/bin/bash"
####
#### image names to test with (double-quotes around names are critical)
####
FEDORA_NAME: "fedora-34"
IMAGE_SUFFIX: "c6737534580424704"
FEDORA_CONTAINER_FQIN: "quay.io/libpod/fedora_podman:${IMAGE_SUFFIX}"
# Default, hard-coded max timeout is 2-hours.
timeout_in: 30m # no need to wait 2-hours before timing out
testing_task:
alias: testing
name: "Testing on $FEDORA_NAME"
container:
image: "${FEDORA_CONTAINER_FQIN}"
test_script:
- apt-get update && apt-get -qq install libdevmapper-dev libbtrfs-dev libseccomp-dev
- |
cat >keyspec <<EOF
%echo Generating a default key
%no-protection
Key-Type: default
Subkey-Type: default
Name-Real: Tester
Name-Email: tester@localhost
Expire-Date: 0
%commit
%echo done
EOF
- gpg --batch --gen-key keyspec
- make vendor
- make build
- make install.tools
- make validate
- make test
# Status aggregator for all tests. This task simply ensures a defined
# set of tasks all passed, and allows confirming that based on the status
# of this task.
success_task:
depends_on:
- "testing"
container:
image: "${FEDORA_CONTAINER_FQIN}"
clone_script: &noop mkdir -p "$CIRRUS_WORKING_DIR"
script: *noop