Skip to:
Content

bbPress.org

Changeset 7043 for trunk


Ignore:
Timestamp:
12/15/2019 12:59:20 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 trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r6962 r7043  
    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
     
    2120# PHP version used in first build configuration.
    2221php:
     22  - 7.4
     23  - 7.3
    2324  - 7.2
    2425  - 7.1
    2526  - 7.0
    2627  - 5.6
    27   - 5.5
    28   - 5.4
    2928
    3029# WordPress comes from the Git mirror, where 'master' mirrors svn 'trunk' and
     
    3231env:
    3332  - WP_VERSION=master
    34   - WP_VERSION=4.9
    35   - WP_VERSION=4.8
    36   - WP_VERSION=4.7
     33  - WP_VERSION=5.3
     34  - WP_VERSION=5.2
    3735
    3836# Build matrix options
    39 matrix:
     37jobs:
    4038  include:
    4139    - php: nightly
    4240      env: WP_VERSION=master
    43     - php: 5.3
    44       env: WP_VERSION=master
    45       dist: precise
    46     - php: 5.3
    47       env: WP_VERSION=4.8
    48       dist: precise
    49     - php: 5.3
    50       env: WP_VERSION=4.7
    51       dist: precise
    52     - php: 5.2
    53       env: WP_VERSION=master
    54       dist: precise
    55     - php: 5.2
    56       env: WP_VERSION=4.8
    57       dist: precise
    58     - php: 5.2
    59       env: WP_VERSION=4.7
    60       dist: precise
    6141  exclude:
    62     - php: 7.2
    63       env: WP_VERSION=4.8
    64     - php: 7.2
    65       env: WP_VERSION=4.7
     42    - php: 7.4
     43      env: WP_VERSION=5.2
    6644  allow_failures:
    6745    - php: nightly
     
    123101      echo "Using latest PHPUnit 6.x branch"
    124102      composer global require "phpunit/phpunit=^6"
    125     elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
     103    elif [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then
    126104      echo "Using latest PHPUnit 4.x branch"
    127105      composer global require "phpunit/phpunit=^4"
     
    133111script:
    134112  - grunt travis
    135   - if [ "$TRAVIS_PHP_VERSION" != "5.2" ]; then grunt test:buddypress; fi
    136113
    137114notifications:
    138115    email: false
    139     irc:
    140       channels:
    141         - secure: "eRufY5taFDAuASgf9kB8oIC58lK9jLCTGVZ9Dr4M3Xxnwsj6t42Z5U9ZJ5wWAa0+9rf3UwbXj32Nd4QVvKWQL+IYTolX+LHzIidjKjYhOoCNr9HoMgjNOrjozXezKqqXzYKkPdX6drxk7JkK+ftx8qvVtZgRU8BS9sjhYDWh1X4="
    142       template:
    143         - "Build %{build_number} (%{branch} - %{commit}): %{message} %{build_url}"
    144 
  • trunk/Gruntfile.js

    r7039 r7043  
    414414    } );
    415415
    416     // PHPUnit test task.
    417     grunt.registerTask( 'test:buddypress', 'Run the BuddyPress PHPUnit test tasks.', [ 'phpunit:buddypress' ] );
    418     grunt.registerTask( 'test:wordpress', 'Run the single and multisite WordPress PHPUnit test tasks.', [ 'phpunit:default', 'phpunit:multisite' ] );
    419 
    420 
    421 
    422 
    423416    // JavaScript test task.
    424417    grunt.registerTask( 'jstest', 'Runs all JavaScript tasks.', [ 'jsvalidate:src', 'jshint' ] );
    425418
    426419    // Travis CI Task
    427     grunt.registerTask( 'travis', [ 'jsvalidate:src', 'jshint', 'checktextdomain', 'test:wordpress' ] );
     420    grunt.registerTask( 'travis', [ 'jsvalidate:src', 'jshint', 'checktextdomain', 'phpunit' ] );
    428421
    429422    // Patch task.
Note: See TracChangeset for help on using the changeset viewer.