File tree Expand file tree Collapse file tree 11 files changed +51
-2974
lines changed Expand file tree Collapse file tree 11 files changed +51
-2974
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ sudo: false
2
2
dist : trusty
3
3
4
4
language : php
5
+ php : 7.2
5
6
6
7
notifications :
7
8
email :
21
22
- PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
22
23
- WP_CLI_BIN_DIR="$TRAVIS_BUILD_DIR/vendor/bin"
23
24
24
- matrix :
25
- include :
26
- - php : 7.2
27
- env : WP_VERSION=latest
28
- - php : 7.1
29
- env : WP_VERSION=latest
30
- - php : 7.0
31
- env : WP_VERSION=latest
32
- - php : 5.6
33
- env : WP_VERSION=latest
34
- - php : 5.6
35
- env : WP_VERSION=3.7.11
36
- - php : 5.6
37
- env : WP_VERSION=trunk
38
- - php : 5.3
39
- dist : precise
40
- env : WP_VERSION=latest
41
-
42
25
before_install :
43
26
- |
44
27
# Remove Xdebug for a huge performance increase:
@@ -50,14 +33,41 @@ before_install:
50
33
- |
51
34
# Raise PHP memory limit to 2048MB
52
35
echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
36
+ - composer validate
53
37
54
38
install :
55
- - composer require wp-cli/wp-cli:dev-master
56
39
- composer install
57
- - bash bin/install-package-tests.sh
58
-
59
- before_script :
60
- - composer validate
40
+ - composer prepare-tests
61
41
62
42
script :
63
- - bash bin/test.sh
43
+ - composer phpunit
44
+ - composer behat
45
+
46
+ jobs :
47
+ include :
48
+ - stage : sniff
49
+ script :
50
+ - composer lint
51
+ - composer phpcs
52
+ env : BUILD=sniff
53
+ - stage : test
54
+ php : 7.2
55
+ env : WP_VERSION=latest
56
+ - stage : test
57
+ php : 7.1
58
+ env : WP_VERSION=latest
59
+ - stage : test
60
+ php : 7.0
61
+ env : WP_VERSION=latest
62
+ - stage : test
63
+ php : 5.6
64
+ env : WP_VERSION=latest
65
+ - stage : test
66
+ php : 5.6
67
+ env : WP_VERSION=3.7.11
68
+ - stage : test
69
+ php : 5.6
70
+ env : WP_VERSION=trunk
71
+ - stage : test
72
+ php : 5.4
73
+ env : WP_VERSION=latest
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
22
},
23
23
"files" : [ " search-replace-command.php" ]
24
24
},
25
- "require" : {},
25
+ "require" : {
26
+ "wp-cli/wp-cli" : " ^2"
27
+ },
26
28
"require-dev" : {
27
- "behat/behat" : " ~2.5" ,
28
- "wp-cli/wp-cli" : " ^1.5"
29
+ "wp-cli/wp-cli-tests" : " ^0"
29
30
},
30
31
"extra" : {
31
32
"branch-alias" : {
35
36
"commands" : [
36
37
" search-replace"
37
38
]
39
+ },
40
+ "scripts" : {
41
+ "lint" : " run-linter-tests" ,
42
+ "phpcs" : " run-phpcs-tests" ,
43
+ "phpunit" : " run-php-unit-tests" ,
44
+ "behat" : " run-behat-tests" ,
45
+ "prepare-tests" : " install-package-tests" ,
46
+ "test" : [
47
+ " @lint" ,
48
+ " @phpcs" ,
49
+ " @phpunit" ,
50
+ " @behat"
51
+ ]
38
52
}
39
53
}
You can’t perform that action at this time.
0 commit comments