File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -46,4 +46,4 @@ before_script:
46
46
- composer validate
47
47
48
48
script :
49
- - behat --format progress --strict
49
+ - bash bin/test.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -ex
4
+
5
+ # Run the functional tests
6
+ BEHAT_TAGS=$( php utils/behat-tags.php)
7
+ behat --format progress $BEHAT_TAGS --strict
Original file line number Diff line number Diff line change 24
24
pre :
25
25
- composer validate
26
26
override :
27
- - WP_VERSION=latest behat --format progress --strict
27
+ - WP_VERSION=latest bash bin/test.sh
28
28
- rm -rf '/tmp/wp-cli-test core-download-cache'
29
- - WP_VERSION=trunk behat --format progress --strict
29
+ - WP_VERSION=trunk bash bin/test.sh
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ Feature: Scaffold the test suite for an existing package
34
34
Then STDOUT should not be empty
35
35
And the community-command/.travis.yml file should exist
36
36
And the community-command/bin/install-package-tests.sh file should exist
37
+ And the community-command/bin/test.sh file should exist
37
38
And the community-command/utils/behat-tags.php file should contain:
38
39
"""
39
40
require-wp
@@ -84,6 +85,10 @@ Feature: Scaffold the test suite for an existing package
84
85
"""
85
86
bash bin/install-package-tests.sh
86
87
"""
88
+ And the community-command/.travis.yml file should contain:
89
+ """
90
+ bash bin/test.sh
91
+ """
87
92
And the community-command/circle.yml file should not exist
88
93
89
94
Scenario : Scaffolds .travis.yml configuration file with argument
@@ -94,4 +99,8 @@ Feature: Scaffold the test suite for an existing package
94
99
"""
95
100
bash bin/install-package-tests.sh
96
101
"""
102
+ And the community-command/circle.yml file should contain:
103
+ """
104
+ bash bin/test.sh
105
+ """
97
106
And the community-command/.travis.yml file should not exist
You can’t perform that action at this time.
0 commit comments