@@ -740,6 +740,9 @@ jobs:
740
740
command : |
741
741
CYPRESS_KONFIG_ENV=production \
742
742
CYPRESS_RECORD_KEY=$PACKAGES_RECORD_KEY \
743
+ PERCY_PARALLEL_NONCE=$CIRCLE_WORKFLOW_ID \
744
+ PERCY_PARALLEL_TOTAL=-1 \
745
+ yarn percy exec -- \
743
746
yarn cypress:run --record --parallel --group 2x-desktop-gui
744
747
working_directory : packages/desktop-gui
745
748
- verify-mocha-results
@@ -749,38 +752,6 @@ jobs:
749
752
path : /tmp/artifacts
750
753
- store-npm-logs
751
754
752
- desktop-gui-visual-tests :
753
- << : *defaults
754
- parallelism : 1
755
- steps :
756
- - attach_workspace :
757
- at : ~/
758
- - run :
759
- command : yarn build-prod
760
- working_directory : packages/desktop-gui
761
- - run :
762
- name : Desktop GUI server
763
- command : yarn start
764
- working_directory : packages/desktop-gui
765
- background : true
766
- - run :
767
- # will use PERCY_TOKEN environment variable if available
768
- # to tie Percy builds together, use environment variables
769
- # https://docs.percy.io/docs/parallel-test-suites
770
- # we can use workflow id and list number of jobs with Percy screenshots
771
- # if we allow Percy snapshots in more jobs, use the same
772
- # PERCY_* variables in all of them
773
- command : |
774
- CYPRESS_KONFIG_ENV=production \
775
- PERCY_PARALLEL_NONCE=$CIRCLE_WORKFLOW_ID \
776
- PERCY_PARALLEL_TOTAL=1 \
777
- yarn percy exec -- \
778
- yarn cypress:run --spec cypress/integration/settings_spec.js,cypress/integration/specs_list_spec.js
779
- working_directory : packages/desktop-gui
780
- - verify-mocha-results
781
- # we don't really need any artifacts - we are only interested in visual screenshots
782
- - store-npm-logs
783
-
784
755
desktop-gui-component-tests :
785
756
<< : *defaults
786
757
parallelism : 1
@@ -807,7 +778,7 @@ jobs:
807
778
command : |
808
779
CYPRESS_KONFIG_ENV=production \
809
780
PERCY_PARALLEL_NONCE=$CIRCLE_WORKFLOW_ID \
810
- PERCY_PARALLEL_TOTAL=1 \
781
+ PERCY_PARALLEL_TOTAL=- 1 \
811
782
yarn percy exec -- \
812
783
yarn cypress:run --spec 'src/**/*_spec.jsx'
813
784
working_directory : packages/desktop-gui
@@ -866,6 +837,13 @@ jobs:
866
837
command : node index.js
867
838
working_directory : packages/launcher
868
839
840
+ finalize-percy :
841
+ << : *defaults
842
+ steps :
843
+ - run :
844
+ name : " finalizes percy builds"
845
+ command : npx percy finalize --all
846
+
869
847
build-binary :
870
848
<< : *defaults
871
849
shell : /bin/bash --login
@@ -1582,9 +1560,6 @@ linux-workflow: &linux-workflow
1582
1560
- desktop-gui-integration-tests-2x :
1583
1561
requires :
1584
1562
- build
1585
- - desktop-gui-visual-tests :
1586
- requires :
1587
- - build
1588
1563
- desktop-gui-component-tests :
1589
1564
requires :
1590
1565
- build
@@ -1597,6 +1572,13 @@ linux-workflow: &linux-workflow
1597
1572
- run-launcher :
1598
1573
requires :
1599
1574
- build
1575
+
1576
+ - percy-finalize :
1577
+ requires :
1578
+ - desktop-gui-integration-tests-2x
1579
+ - desktop-gui-component-tests
1580
+ - cli-visual-tests
1581
+
1600
1582
# various testing scenarios, like building full binary
1601
1583
# and testing it on a real project
1602
1584
- test-against-staging :
0 commit comments