Skip to:
Content

bbPress.org

Changeset 6373 for trunk/.travis.yml


Ignore:
Timestamp:
03/10/2017 05:02:10 AM (9 years ago)
Author:
netweb
Message:

Build/Test Tools: Update .travis.yml to explicitly use PHPUnit 5.7 for the PHP 7 builds on Travis.

  • Add some more debugging to Travis.
  • Clean up indentation.

Fixes #3085.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r6351 r6373  
    1414# PHP version used in first build configuration.
    1515php:
    16     - 7.1
    17     - 7.0
    18     - 5.6
    19     - 5.5
    20     - 5.4
    21     - 5.3
    22     - 5.2
     16  - 7.1
     17  - 7.0
     18  - 5.6
     19  - 5.5
     20  - 5.4
     21  - 5.3
     22  - 5.2
    2323
    2424# WordPress comes from the Git mirror, where 'master' mirrors svn 'trunk' and
    2525# x.y mirrors the latest from the x.y branch
    2626env:
    27     - WP_VERSION=master
    28     - WP_VERSION=4.7
     27  - WP_VERSION=master
     28  - WP_VERSION=4.7
    2929
    3030# Build matrix options
     
    7575    # setup NodeJS version using NVM
    7676    - node --version
    77     - nvm install 4
     77    - nvm install 6
    7878    - node --version
    7979    - npm install -g grunt-cli
     
    8181    - phpenv versions
    8282    - mysql --version
     83    - php --version
     84    - php -m
     85    - phpunit --version
     86    - curl --version
     87    - grunt --version
     88    - git --version
     89    - svn --version
    8390
    8491# before_script: Failures in this section will result in build status 'failed'
    8592before_script:
    8693  - stable='^[0-9\.]+$'; if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then phpenv config-rm xdebug.ini; fi
     94  - export PATH="$HOME/.composer/vendor/bin:$PATH"
     95  - |
     96  if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
     97    composer global require "phpunit/phpunit=5.7.*"
     98  elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
     99    composer global require "phpunit/phpunit=4.8.*"
     100  fi
    87101  - npm install
    88102  - grunt build
Note: See TracChangeset for help on using the changeset viewer.