diff --git .travis.yml .travis.yml
index bf0c30f..817b27b 100644
|
|
php: |
17 | 17 | # WordPress comes from the Git mirror, where 'master' mirrors svn 'trunk' and |
18 | 18 | # x.y mirrors the latest from the x.y branch |
19 | 19 | env: |
20 | | - WP_VERSION=master |
21 | | - WP_VERSION=4.5 |
22 | | - WP_VERSION=4.4 |
23 | | - WP_VERSION=4.3 |
24 | | - WP_VERSION=4.2 |
25 | | - WP_VERSION=4.1 |
| 20 | - WP_VERSION=master BP_TRAVISCI=travis:phpunit |
| 21 | - WP_VERSION=4.5 BP_TRAVISCI=travis:phpunit |
| 22 | - WP_VERSION=4.4 BP_TRAVISCI=travis:phpunit |
| 23 | - WP_VERSION=4.3 BP_TRAVISCI=travis:phpunit |
| 24 | - WP_VERSION=4.2 BP_TRAVISCI=travis:phpunit |
| 25 | - WP_VERSION=4.1 BP_TRAVISCI=travis:phpunit |
26 | 26 | |
27 | 27 | matrix: |
28 | 28 | fast_finish: true |
29 | 29 | include: |
30 | 30 | - php: nightly |
31 | | env: WP_VERSION=master |
| 31 | env: WP_VERSION=master BP_TRAVISCI=travis:phpunit |
| 32 | - php: 7.0 |
| 33 | env: WP_VERSION=master BP_TRAVISCI=travis:grunt |
32 | 34 | exclude: |
33 | 35 | - php: 7.0 |
34 | | env: WP_VERSION=4.2 |
| 36 | env: WP_VERSION=4.2 BP_TRAVISCI=travis:phpunit |
35 | 37 | - php: 7.0 |
36 | | env: WP_VERSION=4.1 |
| 38 | env: WP_VERSION=4.1 BP_TRAVISCI=travis:phpunit |
37 | 39 | allow_failures: |
38 | 40 | - php: nightly |
39 | 41 | |
… |
… |
before_script: |
71 | 73 | - npm install |
72 | 74 | |
73 | 75 | # Run tests |
74 | | script: grunt travis |
| 76 | script: grunt $BP_TRAVISCI |
75 | 77 | |
76 | 78 | notifications: |
77 | 79 | email: false |
diff --git Gruntfile.js Gruntfile.js
index 3a5fab7..ab97e1d 100644
|
|
module.exports = function( grunt ) { |
266 | 266 | |
267 | 267 | grunt.registerTask( 'jstest', 'Runs all JavaScript tasks.', [ 'jsvalidate:src', 'jshint' ] ); |
268 | 268 | |
269 | | // Travis CI Task |
270 | | grunt.registerTask( 'travis', ['jsvalidate:src', 'jshint', 'checktextdomain', 'test'] ); |
| 269 | // Travis CI Tasks. |
| 270 | grunt.registerTask( 'travis:grunt', 'Runs Grunt build task.', [ 'build' ]); |
| 271 | grunt.registerTask( 'travis:phpunit', ['jsvalidate:src', 'jshint', 'checktextdomain', 'test'] ); |
271 | 272 | |
272 | 273 | // Patch task. |
273 | 274 | grunt.renameTask( 'patch_wordpress', 'patch' ); |