-
Notifications
You must be signed in to change notification settings - Fork 2
/
.cirrus.yml
35 lines (32 loc) · 1014 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
24
25
26
27
28
29
30
31
32
33
34
35
# Allow compute credits usage for collaborators and anything pushed to the
# master, staging, and trying branches. (So bors can use them.)
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true' || $CIRRUS_BRANCH == 'master' || $CIRRUS_BRANCH == 'staging' || $CIRRUS_BRANCH == 'trying'
Lint_task:
container:
dockerfile: Dockerfile
setup_script:
- git submodule update --init
script:
- make lint
Test_task:
depends_on:
- Lint
container:
dockerfile: Dockerfile
setup_script:
- git submodule update --init
script:
- make test
build_artifacts:
path: iso/awoo-i386-test.iso
# Initiate a website deploy.
Website_Deploy_task:
only_if: $CIRRUS_BRANCH == 'master'
container:
image: debian:10-slim
env:
SITE_DEPLOY_URL: ENCRYPTED[a72c2254cebc55a572c0ba5aa726bc8587aabf391652881c655d697405ca6c9dbcc3f4a06306b12e8f0ca4c2168143c4]
install_script:
- "apt-get update && apt-get install -y curl"
script:
- "curl -X POST -d '{}' ${SITE_DEPLOY_URL}"