@@ -59,7 +59,8 @@ executors:
5959 # https://circleci.com/docs/2.0/testing-ios/#supported-xcode-versions
6060 mac :
6161 macos :
62- xcode : " 10.1.0"
62+ # # Node 12.10.0 (yarn 1.17.3)
63+ xcode : " 11.0.0"
6364 environment :
6465 PLATFORM : mac
6566
@@ -97,7 +98,7 @@ commands:
9798 - attach_workspace :
9899 at : ~/
99100 - run :
100- command : yarn lerna exec --scope @packages/server "yarn test-e2e --chunk << parameters.chunk >> --browser << parameters.browser >>"
101+ command : yarn lerna exec --scope @packages/server "yarn test ./test/e2e/ << parameters.chunk >>*spec* --browser << parameters.browser >>"
101102 - verify-mocha-results
102103 - store_test_results :
103104 path : /tmp/cypress
@@ -235,7 +236,7 @@ jobs:
235236 - run : ls $(yarn global bin)/../lib/node_modules
236237
237238 # try several times, because flaky NPM installs ...
238- - run : yarn --ignore-engines || yarn --ignore-engines
239+ - run : yarn || yarn
239240 - run :
240241 name : Top level packages
241242 command : yarn list --depth=0 || true
@@ -297,7 +298,7 @@ jobs:
297298 # make sure our snapshots are compared correctly
298299 - run : yarn test-mocha-snapshot
299300 # make sure packages with TypeScript can be transpiled to JS
300- - run : yarn lerna run build-js --stream
301+ - run : yarn lerna run build-prod --stream
301302 # run unit tests from each individual package
302303 - run : yarn test
303304 - verify-mocha-results :
@@ -585,7 +586,7 @@ jobs:
585586 - attach_workspace :
586587 at : ~/
587588 - run :
588- command : yarn lerna run start --scope @packages/driver
589+ command : yarn workspace @packages/driver start
589590 background : true
590591 - run :
591592 command : $(yarn bin)/wait-on http://localhost:3500
@@ -606,7 +607,7 @@ jobs:
606607 - attach_workspace :
607608 at : ~/
608609 - run :
609- command : yarn lerna exec --scope @packages/desktop-gui "yarn build-prod"
610+ command : yarn workspace @packages/desktop-gui build-prod
610611 - run :
611612 command : |
612613 CYPRESS_KONFIG_ENV=production \
@@ -624,7 +625,7 @@ jobs:
624625 - attach_workspace :
625626 at : ~/
626627 - run :
627- command : yarn lerna exec --scope @packages/reporter "yarn build-prod"
628+ command : yarn workspace @packages/reporter build-for-tests
628629 - run :
629630 command : |
630631 CYPRESS_KONFIG_ENV=production \
@@ -642,7 +643,7 @@ jobs:
642643 - attach_workspace :
643644 at : ~/
644645 - run :
645- command : yarn lerna run build --scope @packages/ui-components
646+ command : yarn workspace @packages/ui-components build-for-tests
646647 - run :
647648 command : |
648649 CYPRESS_KONFIG_ENV=production \
@@ -938,6 +939,40 @@ jobs:
938939 command : $(yarn bin)/cypress info
939940 - store-npm-logs
940941
942+ test-npm-module-on-minimum-node-version :
943+ << : *defaults
944+ docker :
945+ - image : cypress/base:8.0.0
946+ steps :
947+ - attach_workspace :
948+ at : ~/
949+ # make sure we have cypress.zip received
950+ - run : ls -l
951+ - run : ls -l cypress.zip cypress.tgz
952+ - run : mkdir test-binary
953+ - run : node --version
954+ - run : npm --version
955+ - run :
956+ name : Create new NPM package
957+ working_directory : test-binary
958+ command : npm init -y
959+ - run :
960+ name : Install Cypress
961+ working_directory : test-binary
962+ command : CYPRESS_INSTALL_BINARY=/root/cypress/cypress.zip npm install /root/cypress/cypress.tgz
963+ - run :
964+ name : Verify Cypress binary
965+ working_directory : test-binary
966+ command : $(npm bin)/cypress verify
967+ - run :
968+ name : Print Cypress version
969+ working_directory : test-binary
970+ command : $(npm bin)/cypress version
971+ - run :
972+ name : Cypress info
973+ working_directory : test-binary
974+ command : $(npm bin)/cypress info
975+
941976 # install NPM + binary zip and run against staging API
942977 " test-binary-against-staging " :
943978 << : *defaults
@@ -1247,6 +1282,10 @@ linux-workflow: &linux-workflow
12471282 - develop
12481283 requires :
12491284 - build-binary
1285+ - test-npm-module-on-minimum-node-version :
1286+ requires :
1287+ - build-binary
1288+ - build-npm-package
12501289 - post-pre-release-install-comment :
12511290 context : test-runner:commit-status-checks
12521291 filters :
0 commit comments