File tree Expand file tree Collapse file tree 3 files changed +32
-8
lines changed Expand file tree Collapse file tree 3 files changed +32
-8
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ matrix:
24
24
script :
25
25
- docker-compose -f docker-compose.travis.yml up -d
26
26
- chmod +x ./bin/run-e2e-tests.sh ./bin/wp-init.sh && ./bin/wp-init.sh && ./bin/run-e2e-tests.sh
27
+ - name : Cypress Gutenberg
28
+ language : node_js
29
+ node_js :
30
+ - 10.8
31
+ script :
32
+ - docker-compose -f docker-compose.travis.yml up -d
33
+ - chmod +x ./bin/run-e2e-tests-gutenberg.sh ./bin/wp-init.sh && ./bin/wp-init.sh && ./bin/run-e2e-tests-gutenberg.sh
27
34
allow_failures :
28
35
- env : TEST_SUITE=Wraith_Visual_Regression_Testing WRAITH_FAIL=5
29
36
branches :
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ if [[ " $TRAVIS " == " true" ]]; then
4
+ npm install --only=dev --prefix ./cypress/
5
+ composer install --no-dev
6
+ fi
7
+
8
+ wp_host=' localhost'
9
+ windows=` echo $OSTYPE | grep -i -e " win" -e " msys" -e " cygw" | wc -l`
10
+ args=' -it' ;
11
+ if [[ $windows -gt 0 ]]; then
12
+ wp_host=` docker-machine ip`
13
+ args=' '
14
+ fi
15
+
16
+ # exit on error
17
+ set -e
18
+
19
+ export CYPRESS_HOST=$wp_host
20
+
21
+ # gutenberg - DO NOT move this from here as the number of charts in the library are being counted.
22
+ # so this HAS to be the first test.
23
+ docker exec $args visualizer_wordpress wp --quiet plugin deactivate classic-editor
24
+ export CYPRESS_SPEC_TO_RUN=" free-gutenberg.js"
25
+ npm run cypress:run
Original file line number Diff line number Diff line change @@ -18,14 +18,6 @@ set -e
18
18
19
19
export CYPRESS_HOST=$wp_host
20
20
21
- # gutenberg - DO NOT move this from here as the number of charts in the library are being counted.
22
- # so this HAS to be the first test.
23
- docker exec $args visualizer_wordpress wp --quiet plugin deactivate classic-editor
24
- export CYPRESS_SPEC_TO_RUN=" free-gutenberg.js"
25
- npm run cypress:run
26
-
27
- docker exec $args visualizer_wordpress wp --quiet plugin activate classic-editor
28
-
29
21
# test free - lifecycle
30
22
export CYPRESS_SPEC_TO_RUN=" free-lifecycle.js"
31
23
npm run cypress:run
You can’t perform that action at this time.
0 commit comments