File tree Expand file tree Collapse file tree 3 files changed +23
-15
lines changed Expand file tree Collapse file tree 3 files changed +23
-15
lines changed Original file line number Diff line number Diff line change @@ -18,21 +18,23 @@ cache:
18
18
19
19
matrix :
20
20
include :
21
+ - php : 7.3
22
+ env : WP_VERSION=latest
21
23
- php : 7.2
22
24
env : WP_VERSION=latest
23
25
- php : 7.1
24
26
env : WP_VERSION=latest
25
27
- php : 7.0
26
28
env : WP_VERSION=latest
27
- - php : 5.6
28
- env : WP_VERSION=latest
29
- - php : 5.6
29
+ - php : 7.0
30
30
env : WP_VERSION=trunk
31
- - php : 5.6
31
+ - php : 7.0
32
32
env : WP_TRAVISCI=phpcs
33
+ dist : precise
33
34
34
35
before_script :
35
36
- export PATH="$HOME/.composer/vendor/bin:$PATH"
37
+ - composer install --ignore-platform-reqs --optimize-autoloader --no-interaction --prefer-dist
36
38
- |
37
39
if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
38
40
phpenv config-rm xdebug.ini
@@ -42,21 +44,15 @@ before_script:
42
44
- |
43
45
if [[ ! -z "$WP_VERSION" ]] ; then
44
46
bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
45
- composer global require "phpunit/phpunit=4.8.*|5.7.*"
46
- fi
47
- - |
48
- if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
49
- composer global require wp-coding-standards/wpcs
50
- phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs
51
47
fi
52
48
53
49
script :
54
50
- |
55
51
if [[ ! -z "$WP_VERSION" ]] ; then
56
- phpunit
57
- WP_MULTISITE=1 phpunit
52
+ vendor/bin/ phpunit
53
+ WP_MULTISITE=1 vendor/bin/ phpunit
58
54
fi
59
55
- |
60
56
if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
61
- phpcs
57
+ vendor/bin/ phpcs
62
58
fi
Original file line number Diff line number Diff line change 9
9
"homepage" : " http://wp-api.org/"
10
10
}
11
11
],
12
+ "require" : {
13
+ "composer/installers" : " ~1.0" ,
14
+ "php" : " ^5.6.0||^7.0"
15
+ },
12
16
"require-dev" : {
13
- "humanmade/coding-standards" : " dev-master"
17
+ "squizlabs/php_codesniffer" : " ^3.3.1" ,
18
+ "wp-coding-standards/wpcs" : " ^2.1.1" ,
19
+ "dealerdirect/phpcodesniffer-composer-installer" : " ^0.5.0" ,
20
+ "phpcompatibility/phpcompatibility-wp" : " ^2.0" ,
21
+ "phpunit/phpunit" : " ^4.0 || ^5.0 || ^6.0"
22
+ },
23
+ "scripts" : {
24
+ "post-install-cmd" : " \" vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs" ,
25
+ "post-update-cmd" : " \" vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs"
14
26
}
15
27
}
Original file line number Diff line number Diff line change 23
23
* Manually load the plugin being tested.
24
24
*/
25
25
function _manually_load_plugin () {
26
- require dirname ( dirname ( __FILE__ ) ) . '/oauth2 .php ' ;
26
+ require dirname ( dirname ( __FILE__ ) ) . '/plugin .php ' ;
27
27
}
28
28
tests_add_filter ( 'muplugins_loaded ' , '_manually_load_plugin ' );
29
29
You can’t perform that action at this time.
0 commit comments