Skip to content

Commit

Permalink
Merge #237
Browse files Browse the repository at this point in the history
237: Define “success” as a single CI task, refactor Bors & release config r=duckinator a=nbraud

- [x] Introduced aliases for each task group
- [x] Introduced a “CI success” task that depends on all relevant tasks
- [x] Refactored the Bors config and release task to depend on that task

Closes #236

Co-authored-by: nicoo <[email protected]>
  • Loading branch information
bors[bot] and nbraud authored Jan 4, 2021
2 parents 6d2c896 + dd363d9 commit 8f0f399
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 24 deletions.
23 changes: 16 additions & 7 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Lint_task:
- bork run lint

Zipapp_bootstrap_task:
alias: Zipapp bootstraps
container:
matrix:
image: python:3.7-slim
Expand Down Expand Up @@ -51,6 +52,7 @@ Zipapp_bootstrap_task:


Linux_task:
alias: Linux tests
container:
matrix:
- image: python:3.6-slim
Expand All @@ -67,6 +69,7 @@ Linux_task:
- bork run test

macOS_task:
alias: macOS tests
osx_instance:
image: catalina-xcode
env:
Expand All @@ -92,6 +95,7 @@ macOS_task:
- bork run test

FreeBSD_task:
alias: FreeBSD tests
freebsd_instance:
image_family: freebsd-12-1-snap
env:
Expand Down Expand Up @@ -124,16 +128,21 @@ FreeBSD_task:
# - C:\Python\python.exe --version
# - C:\Python\python.exe -m pytest --verbose

# If bork/version.py is modified on the master branch, make a release.
Release_task:
only_if: "changesInclude('bork/version.py') && $BRANCH == 'master' && $CIRRUS_CRON == ''"
success_task:
name: CI success
container: {image: "busybox"}
depends_on:
- FreeBSD tests
- Linux tests
- macOS tests
- Zipapp bootstraps
- Lint
- Zipapp_bootstrap
- Linux
- macOS
- FreeBSD
#- Windows

# If bork/version.py is modified on the master branch, make a release.
Release_task:
only_if: "changesInclude('bork/version.py') && $BRANCH == 'master' && $CIRRUS_CRON == ''"
depends_on: [CI success]
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ENCRYPTED[00007524e18bea7b59efea288653efa57b1dbd235ed8af00cc325febfc9076631a2bf58ed330d8fa7ca057adb81579b0]
Expand Down
18 changes: 1 addition & 17 deletions bors.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
status = [
"FreeBSD PYTHON:3.6",
"FreeBSD PYTHON:3.7",
"FreeBSD PYTHON:3.8",
"Lint",
"Linux container:python:3.6-slim",
"Linux container:python:3.7-slim",
"Linux container:python:3.8-slim",
"Linux container:python:3.9-slim",
"Zipapp_bootstrap container:python:3.7-slim",
"Zipapp_bootstrap container:python:3.8-slim",
"Zipapp_bootstrap container:python:3.9-slim",
"macOS PYTHON:3.6.9",
"macOS PYTHON:3.7.9",
"macOS PYTHON:3.8.6",
"macOS PYTHON:3.9.0",
]
status = [ "CI success" ]

delete_merged_branches = true

0 comments on commit 8f0f399

Please sign in to comment.