Skip to:
Content

bbPress.org

Changeset 7044


Ignore:
Timestamp:
12/15/2019 05:40:23 AM (5 years ago)
Author:
netweb
Message:

Build Tools: Update Travis CI config.

  • Drop apt: true key
  • Drop PHP 5.3 & 5.4 jobs
  • Add PHP 7.3 & 7.4 jobs
  • Drop WordPress 4.7, 4.8, & 4.9
  • Add WordPress 5.2 & 5.3
  • Ensure MySQL is available
  • Exclude WP 5.2 from PHP 7.4 jobs
  • Remove #bbpress-dev IRC notifications
  • Remove deprecated sudu: false key
  • Run BuddyPress Tests on all jobs
  • Simplify PHPUnit Travis Grunt task
  • Swap dist: trusty key to os: linux key

For branches/2.6.

Location:
branches/2.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/.travis.yml

    r6748 r7044  
    11# Travis CI Configuration File
    2 
    3 # Use new Travis container-based infrastructure
    4 # http://docs.travis-ci.com/user/workers/container-based-infrastructure/
    5 sudo: false
    62
    73# Tell Travis CI we're using PHP
    84language: php
    95
    10 # Tell Travis CI which distro to use
    11 dist: trusty
     6# Tell Travis CI which operating system to use
     7os: linux
     8
     9# Ensure MySQL is available
     10services:
     11  - mysql
    1212
    1313# Configure caches
    1414cache:
    15   apt: true
    1615  directories:
    1716  - vendor
    1817  - $HOME/.composer/cache
     18  - node_modules
    1919
    2020# PHP version used in first build configuration.
    2121php:
     22  - 7.4
     23  - 7.3
    2224  - 7.2
    2325  - 7.1
    2426  - 7.0
    2527  - 5.6
    26   - 5.5
    27   - 5.4
    2828
    2929# WordPress comes from the Git mirror, where 'master' mirrors svn 'trunk' and
     
    3131env:
    3232  - 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
    3635
    3736# Build matrix options
    38 matrix:
     37jobs:
    3938  include:
    4039    - php: nightly
    4140      env: WP_VERSION=master
    42     - php: 5.3
    43       env: WP_VERSION=master
    44       dist: precise
    45     - php: 5.3
    46       env: WP_VERSION=4.8
    47       dist: precise
    48     - php: 5.3
    49       env: WP_VERSION=4.7
    50       dist: precise
    51     - php: 5.2
    52       env: WP_VERSION=master
    53       dist: precise
    54     - php: 5.2
    55       env: WP_VERSION=4.8
    56       dist: precise
    57     - php: 5.2
    58       env: WP_VERSION=4.7
    59       dist: precise
    6041  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
    6544  allow_failures:
    6645    - php: nightly
     
    9372    # setup NodeJS version using NVM
    9473    - node --version
    95     - nvm install 6
     74    - nvm install 8
    9675    - node --version
    9776    - npm install -g grunt-cli
     
    122101      echo "Using latest PHPUnit 6.x branch"
    123102      composer global require "phpunit/phpunit=^6"
    124     elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
     103    elif [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then
    125104      echo "Using latest PHPUnit 4.x branch"
    126105      composer global require "phpunit/phpunit=^4"
     
    132111script:
    133112  - grunt travis
    134   - if [ "$TRAVIS_PHP_VERSION" != "5.2" ]; then grunt test:buddypress; fi
    135113
    136114notifications:
    137115    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  
    222222            }
    223223        },
     224        phpcs: {
     225            'default': {
     226                cmd: 'phpcs',
     227                args: [ '--report-summary', '--report-source', '--cache=.phpcscache' ]
     228            }
     229        },
    224230        phpunit: {
    225231            'default': {
     
    390396    grunt.registerTask( 'release', [ 'build' ] );
    391397
     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
    392407    // PHPUnit test task.
    393408    grunt.registerMultiTask( 'phpunit', 'Runs PHPUnit tests, including the BuddyPress and multisite tests.', function() {
     
    399414    } );
    400415
    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 
    405416    // JavaScript test task.
    406417    grunt.registerTask( 'jstest', 'Runs all JavaScript tasks.', [ 'jsvalidate:src', 'jshint' ] );
    407418
    408419    // Travis CI Task
    409     grunt.registerTask( 'travis', [ 'jsvalidate:src', 'jshint', 'checktextdomain', 'test:wordpress' ] );
     420    grunt.registerTask( 'travis', [ 'jsvalidate:src', 'jshint', 'checktextdomain', 'phpunit' ] );
    410421
    411422    // Patch task.
Note: See TracChangeset for help on using the changeset viewer.