@@ -29,6 +29,7 @@ mainBuildFilters: &mainBuildFilters
2929 only :
3030 - develop
3131 - 10.0-release
32+ - 10.0-use-contexts
3233
3334# usually we don't build Mac app - it takes a long time
3435# but sometimes we want to really confirm we are doing the right thing
@@ -38,6 +39,7 @@ macWorkflowFilters: &mac-workflow-filters
3839 or :
3940 - equal : [ develop, << pipeline.git.branch >> ]
4041 - equal : [ '10.0-release', << pipeline.git.branch >> ]
42+ - equal : [ 10.0-use-contexts, << pipeline.git.branch >> ]
4143 - matches :
4244 pattern : " -release$"
4345 value : << pipeline.git.branch >>
@@ -47,6 +49,7 @@ windowsWorkflowFilters: &windows-workflow-filters
4749 or :
4850 - equal : [ develop, << pipeline.git.branch >> ]
4951 - equal : [ '10.0-release', << pipeline.git.branch >> ]
52+ - equal : [ 10.0-use-contexts, << pipeline.git.branch >> ]
5053 - matches :
5154 pattern : " -release$"
5255 value : << pipeline.git.branch >>
@@ -419,9 +422,9 @@ commands:
419422 echo Current working directory is $PWD
420423 echo Total containers $CIRCLE_NODE_TOTAL
421424
422- if [[ -v PACKAGES_RECORD_KEY ]]; then
425+ if [[ -v MAIN_RECORD_KEY ]]; then
423426 # internal PR
424- CYPRESS_RECORD_KEY=$PACKAGES_RECORD_KEY \
427+ CYPRESS_RECORD_KEY=$MAIN_RECORD_KEY \
425428 yarn cypress:run --record --parallel --group 5x-driver-<<parameters.browser>> --browser <<parameters.browser>>
426429 else
427430 # external PR
@@ -1416,7 +1419,7 @@ jobs:
14161419 - run :
14171420 command : |
14181421 CYPRESS_KONFIG_ENV=production \
1419- CYPRESS_RECORD_KEY=$PACKAGES_RECORD_KEY \
1422+ CYPRESS_RECORD_KEY=$MAIN_RECORD_KEY \
14201423 PERCY_PARALLEL_NONCE=$CIRCLE_SHA1 \
14211424 PERCY_ENABLE=${PERCY_TOKEN:-0} \
14221425 PERCY_PARALLEL_TOTAL=-1 \
@@ -1461,7 +1464,7 @@ jobs:
14611464 - run :
14621465 command : |
14631466 CYPRESS_KONFIG_ENV=production \
1464- CYPRESS_RECORD_KEY=$PACKAGES_RECORD_KEY \
1467+ CYPRESS_RECORD_KEY=$MAIN_RECORD_KEY \
14651468 yarn cypress:run --record --parallel --group ui-components
14661469 working_directory : packages/ui-components
14671470 - verify-mocha-results
@@ -1577,7 +1580,6 @@ jobs:
15771580 - run :
15781581 name : Run tests
15791582 # will use PERCY_TOKEN environment variable if available
1580- #
15811583 command : |
15821584 CYPRESS_KONFIG_ENV=production \
15831585 PERCY_PARALLEL_NONCE=$CIRCLE_SHA1 \
@@ -1653,26 +1655,26 @@ jobs:
16531655 command : yarn workspace @cypress/eslint-plugin-dev test
16541656
16551657 npm-cypress-schematic :
1656- << : *defaults
1657- resource_class : small
1658- steps :
1659- - restore_cached_workspace
1660- - run :
1661- name : Build + Install
1662- command : |
1663- yarn workspace @cypress/schematic build:all
1664- working_directory : npm/cypress-schematic
1665- - run :
1666- name : Launch
1667- command : |
1668- yarn launch:test
1669- working_directory : npm/cypress-schematic
1670- - run :
1671- name : Run unit tests
1672- command : |
1673- yarn test
1674- working_directory : npm/cypress-schematic
1675- - store-npm-logs
1658+ << : *defaults
1659+ resource_class : small
1660+ steps :
1661+ - restore_cached_workspace
1662+ - run :
1663+ name : Build + Install
1664+ command : |
1665+ yarn workspace @cypress/schematic build:all
1666+ working_directory : npm/cypress-schematic
1667+ - run :
1668+ name : Launch
1669+ command : |
1670+ yarn launch:test
1671+ working_directory : npm/cypress-schematic
1672+ - run :
1673+ name : Run unit tests
1674+ command : |
1675+ yarn test
1676+ working_directory : npm/cypress-schematic
1677+ - store-npm-logs
16761678
16771679 npm-release :
16781680 << : *defaults
@@ -1699,7 +1701,7 @@ jobs:
16991701 - run :
17001702 name : Check current branch to persist artifacts
17011703 command : |
1702- if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "marktnoonan/backmerge-develop-3-8-22 " && "$CIRCLE_BRANCH" != "10.0-release" ]]; then
1704+ if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "10.0-use-contexts " && "$CIRCLE_BRANCH" != "10.0-release" ]]; then
17031705 echo "Not uploading artifacts or posting install comment for this branch."
17041706 circleci-agent step halt
17051707 fi
@@ -2172,6 +2174,7 @@ linux-workflow: &linux-workflow
21722174 - build
21732175 # unit, integration and e2e tests
21742176 - cli-visual-tests :
2177+ context : test-runner:percy
21752178 requires :
21762179 - build
21772180 - unit-tests :
@@ -2212,49 +2215,55 @@ linux-workflow: &linux-workflow
22122215 requires :
22132216 - system-tests-node-modules-install
22142217 - driver-integration-tests-chrome :
2218+ context : test-runner:cypress-record-key
22152219 requires :
22162220 - build
22172221 - driver-integration-tests-chrome-beta :
2222+ context : test-runner:cypress-record-key
22182223 requires :
22192224 - build
22202225 - driver-integration-tests-firefox :
2226+ context : test-runner:cypress-record-key
22212227 requires :
22222228 - build
22232229 - driver-integration-tests-electron :
2230+ context : test-runner:cypress-record-key
22242231 requires :
22252232 - build
22262233 - run-frontend-shared-component-tests-chrome :
2227- context : test-runner:launchpad-tests
2234+ context : [ test-runner:launchpad-tests, test-runner:percy]
22282235 percy : true
22292236 requires :
22302237 - build
22312238 - run-launchpad-integration-tests-chrome :
2232- context : test-runner:launchpad-tests
2239+ context : [ test-runner:launchpad-tests, test-runner:percy]
22332240 percy : true
22342241 requires :
22352242 - build
22362243 - run-launchpad-component-tests-chrome :
2237- context : test-runner:launchpad-tests
2244+ context : [ test-runner:launchpad-tests, test-runner:percy]
22382245 percy : true
22392246 requires :
22402247 - build
22412248 - run-app-integration-tests-chrome :
2242- context : test-runner:launchpad-tests
2249+ context : [ test-runner:launchpad-tests, test-runner:percy]
22432250 percy : true
22442251 requires :
22452252 - build
22462253 - run-app-component-tests-chrome :
2247- context : test-runner:launchpad-tests
2254+ context : [ test-runner:launchpad-tests, test-runner:percy]
22482255 percy : true
22492256 requires :
22502257 - build
22512258 - reporter-integration-tests :
2259+ context : [test-runner:cypress-record-key, test-runner:percy]
22522260 requires :
22532261 - build
22542262 - webpack-dev-server-fresh-integration-tests :
22552263 requires :
22562264 - build
22572265 - ui-components-integration-tests :
2266+ context : test-runner:cypress-record-key
22582267 requires :
22592268 - build
22602269 - npm-webpack-dev-server :
@@ -2270,6 +2279,7 @@ linux-workflow: &linux-workflow
22702279 requires :
22712280 - build
22722281 - npm-design-system :
2282+ context : test-runner:percy
22732283 requires :
22742284 - build
22752285 - npm-vue :
0 commit comments