Skip to content

Commit 15097fe

Browse files
authored
Merge pull request #217 from ppb/ci/selective
Selectively run CI environments outside Bors
2 parents 6d86a88 + 09923f6 commit 15097fe

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.cirrus.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
docs_task:
2-
skip: $CIRRUS_BRANCH =~ '.*\.tmp'
2+
skip: $BRANCH =~ '.*\.tmp'
33
container:
44
image: python:3-slim
55

@@ -12,7 +12,7 @@ docs_task:
1212
- make -C docs/ html
1313

1414
lint_task:
15-
skip: $CIRRUS_BRANCH =~ '.*\.tmp'
15+
skip: $BRANCH =~ '.*\.tmp'
1616
container:
1717
image: python:3-slim
1818

@@ -26,7 +26,7 @@ lint_task:
2626
- ./lint.sh
2727

2828
pep517_task:
29-
skip: $CIRRUS_BRANCH =~ '.*\.tmp'
29+
skip: $BRANCH =~ '.*\.tmp'
3030
container:
3131
image: python:3-slim
3232

@@ -37,6 +37,7 @@ pep517_task:
3737
- python3 -m pep517.check .
3838

3939
upload_task:
40+
skip: $BRANCH =~ '.*\.tmp'
4041
# only_if: $CIRRUS_RELEASE != ""
4142
env:
4243
TWINE_REPOSITORY_URL: "https://test.pypi.org/legacy/"
@@ -61,7 +62,8 @@ upload_task:
6162

6263

6364
FreeBSD_task:
64-
skip: $CIRRUS_BRANCH =~ '.*\.tmp'
65+
only_if: $BRANCH == 'staging' || $BRANCH == 'trying'
66+
use_compute_credits: true
6567
freebsd_instance:
6668
image_family: freebsd-13-0
6769
env:
@@ -86,7 +88,8 @@ FreeBSD_task:
8688
- ./test.sh
8789

8890
task:
89-
skip: $CIRRUS_BRANCH =~ '.*\.tmp'
91+
skip: $BRANCH =~ '.*\.tmp'
92+
use_compute_credits: $BRANCH == 'staging' || $BRANCH == 'trying'
9093
env:
9194
matrix:
9295
- IMAGE: python:3.7-slim
@@ -118,7 +121,8 @@ task:
118121
- ./test.sh
119122

120123
macOS_task:
121-
skip: $CIRRUS_BRANCH =~ '.*\.tmp'
124+
only_if: $BRANCH == 'staging' || $BRANCH == 'trying'
125+
use_compute_credits: true
122126
osx_instance:
123127
image: catalina-xcode
124128
env:
@@ -143,7 +147,8 @@ macOS_task:
143147
- ./test.sh
144148

145149
task:
146-
skip: $CIRRUS_BRANCH =~ '.*\.tmp'
150+
skip: $BRANCH =~ '.*\.tmp'
151+
use_compute_credits: $BRANCH == 'staging' || $BRANCH == 'trying'
147152
env:
148153
matrix:
149154
- IMAGE: python:3.7-windowsservercore

0 commit comments

Comments
 (0)