condition pipelines

pull/2356/head
filip mertens 3 years ago
parent 9057c0ab44
commit bedb7e4943
  1. 11
      .circleci/config.yml

@ -3,6 +3,10 @@
# Check https://circleci.com/docs/2.0/language-javascript/ for more details # Check https://circleci.com/docs/2.0/language-javascript/ for more details
# #
version: 2.1 version: 2.1
parameters:
run_flaky_tests:
type: boolean
default: true
orbs: orbs:
browser-tools: circleci/browser-tools@1.2.3 browser-tools: circleci/browser-tools@1.2.3
jobs: jobs:
@ -399,7 +403,8 @@ jobs:
fi fi
workflows: workflows:
version: 2 version: 2
build_all: run_flaky_tests:
when: << pipeline.parameters.run_flaky_tests >>
jobs: jobs:
- build - build
- flaky-chrome: - flaky-chrome:
@ -408,6 +413,10 @@ workflows:
- flaky-firefox: - flaky-firefox:
requires: requires:
- build - build
build_all:
when: << !pipeline.parameters.run_flaky_tests >>
jobs:
- build
- lint: - lint:
requires: requires:
- build - build

Loading…
Cancel
Save