Changeset 7044
- Timestamp:
- 12/15/2019 05:40:23 AM (5 years ago)
- Location:
- branches/2.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/.travis.yml
r6748 r7044 1 1 # Travis CI Configuration File 2 3 # Use new Travis container-based infrastructure4 # http://docs.travis-ci.com/user/workers/container-based-infrastructure/5 sudo: false6 2 7 3 # Tell Travis CI we're using PHP 8 4 language: php 9 5 10 # Tell Travis CI which distro to use 11 dist: trusty 6 # Tell Travis CI which operating system to use 7 os: linux 8 9 # Ensure MySQL is available 10 services: 11 - mysql 12 12 13 13 # Configure caches 14 14 cache: 15 apt: true16 15 directories: 17 16 - vendor 18 17 - $HOME/.composer/cache 18 - node_modules 19 19 20 20 # PHP version used in first build configuration. 21 21 php: 22 - 7.4 23 - 7.3 22 24 - 7.2 23 25 - 7.1 24 26 - 7.0 25 27 - 5.6 26 - 5.527 - 5.428 28 29 29 # WordPress comes from the Git mirror, where 'master' mirrors svn 'trunk' and … … 31 31 env: 32 32 - WP_VERSION=master 33 - WP_VERSION=4.9 34 - WP_VERSION=4.8 35 - WP_VERSION=4.7 33 - WP_VERSION=5.3 34 - WP_VERSION=5.2 36 35 37 36 # Build matrix options 38 matrix:37 jobs: 39 38 include: 40 39 - php: nightly 41 40 env: WP_VERSION=master 42 - php: 5.343 env: WP_VERSION=master44 dist: precise45 - php: 5.346 env: WP_VERSION=4.847 dist: precise48 - php: 5.349 env: WP_VERSION=4.750 dist: precise51 - php: 5.252 env: WP_VERSION=master53 dist: precise54 - php: 5.255 env: WP_VERSION=4.856 dist: precise57 - php: 5.258 env: WP_VERSION=4.759 dist: precise60 41 exclude: 61 - php: 7.2 62 env: WP_VERSION=4.8 63 - php: 7.2 64 env: WP_VERSION=4.7 42 - php: 7.4 43 env: WP_VERSION=5.2 65 44 allow_failures: 66 45 - php: nightly … … 93 72 # setup NodeJS version using NVM 94 73 - node --version 95 - nvm install 674 - nvm install 8 96 75 - node --version 97 76 - npm install -g grunt-cli … … 122 101 echo "Using latest PHPUnit 6.x branch" 123 102 composer global require "phpunit/phpunit=^6" 124 elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then103 elif [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then 125 104 echo "Using latest PHPUnit 4.x branch" 126 105 composer global require "phpunit/phpunit=^4" … … 132 111 script: 133 112 - grunt travis 134 - if [ "$TRAVIS_PHP_VERSION" != "5.2" ]; then grunt test:buddypress; fi135 113 136 114 notifications: 137 115 email: false 138 irc:139 channels:140 - secure: "eRufY5taFDAuASgf9kB8oIC58lK9jLCTGVZ9Dr4M3Xxnwsj6t42Z5U9ZJ5wWAa0+9rf3UwbXj32Nd4QVvKWQL+IYTolX+LHzIidjKjYhOoCNr9HoMgjNOrjozXezKqqXzYKkPdX6drxk7JkK+ftx8qvVtZgRU8BS9sjhYDWh1X4="141 template:142 - "Build %{build_number} (%{branch} - %{commit}): %{message} %{build_url}"143 -
branches/2.6/Gruntfile.js
r7022 r7044 222 222 } 223 223 }, 224 phpcs: { 225 'default': { 226 cmd: 'phpcs', 227 args: [ '--report-summary', '--report-source', '--cache=.phpcscache' ] 228 } 229 }, 224 230 phpunit: { 225 231 'default': { … … 390 396 grunt.registerTask( 'release', [ 'build' ] ); 391 397 398 // PHPCS test task. 399 grunt.registerMultiTask( 'phpcs', 'Runs PHPCS tests.', function() { 400 grunt.util.spawn( { 401 cmd: this.data.cmd, 402 args: this.data.args, 403 opts: { stdio: 'inherit' } 404 }, this.async() ); 405 } ); 406 392 407 // PHPUnit test task. 393 408 grunt.registerMultiTask( 'phpunit', 'Runs PHPUnit tests, including the BuddyPress and multisite tests.', function() { … … 399 414 } ); 400 415 401 // PHPUnit test task.402 grunt.registerTask( 'test:buddypress', 'Run the BuddyPress PHPUnit test tasks.', [ 'phpunit:buddypress' ] );403 grunt.registerTask( 'test:wordpress', 'Run the single and multisite WordPress PHPUnit test tasks.', [ 'phpunit:default', 'phpunit:multisite' ] );404 405 416 // JavaScript test task. 406 417 grunt.registerTask( 'jstest', 'Runs all JavaScript tasks.', [ 'jsvalidate:src', 'jshint' ] ); 407 418 408 419 // Travis CI Task 409 grunt.registerTask( 'travis', [ 'jsvalidate:src', 'jshint', 'checktextdomain', ' test:wordpress' ] );420 grunt.registerTask( 'travis', [ 'jsvalidate:src', 'jshint', 'checktextdomain', 'phpunit' ] ); 410 421 411 422 // Patch task.
Note: See TracChangeset
for help on using the changeset viewer.