Merge pull request #182 from clong/require_circleci_approval
Update CircleCI job to include approval workflow
This commit is contained in:
@@ -1,16 +1,14 @@
|
|||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
hold:
|
||||||
|
machine: true
|
||||||
|
steps:
|
||||||
|
- run: echo "This build requires approval to continue..."
|
||||||
build:
|
build:
|
||||||
branches:
|
|
||||||
ignore:
|
|
||||||
- master
|
|
||||||
machine: true
|
machine: true
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Choose which test suite to run based on which files were modified
|
name: Choose which test suite to run based on which files were modified
|
||||||
command: |
|
command: |
|
||||||
@@ -76,3 +74,32 @@ jobs:
|
|||||||
|
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: /tmp/artifacts
|
path: /tmp/artifacts
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
workflow:
|
||||||
|
jobs:
|
||||||
|
- hold:
|
||||||
|
type: approval
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
# Don't rebuild the PR after it has been merged into master
|
||||||
|
# Users cannot push directly to master as it is a protected branch
|
||||||
|
ignore: master
|
||||||
|
- build:
|
||||||
|
requires:
|
||||||
|
- hold
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
# Don't rebuild the PR after it has been merged into master
|
||||||
|
ignore: master
|
||||||
|
weekly-build:
|
||||||
|
jobs:
|
||||||
|
- build
|
||||||
|
triggers:
|
||||||
|
- schedule:
|
||||||
|
cron: "0 0 * * 0"
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
# Automatically re-build the contents of master once per week
|
||||||
|
only: master
|
||||||
|
|||||||
Reference in New Issue
Block a user