Skip to:
Content

BuddyPress.org

Changeset 11674


Ignore:
Timestamp:
08/22/2017 09:39:31 AM (7 years ago)
Author:
netweb
Message:

Build Tools: Use PHPUnit 6.x for PHP 7.x and WordPress > 4.7 Travis CI jobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r11673 r11674  
    119119before_script:
    120120  - export PATH="$HOME/.composer/vendor/bin:$PATH"
    121   - |
    122     if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
    123       composer global require "phpunit/phpunit=5.7.*"
    124     elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
    125       composer global require "phpunit/phpunit=4.8.*"
    126     fi
     121  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.3" ]]; then composer global require --dev phpunit/phpunit ^4; fi
     122  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ]]; then composer global require --dev phpunit/phpunit ^4; fi
     123  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then composer global require --dev phpunit/phpunit ^4; fi
     124  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then composer global require --dev phpunit/phpunit ^5; fi
     125  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" && $WP_VERSION == "4.4" ]]; then composer global require --dev phpunit/phpunit ^5; fi
     126  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" && $WP_VERSION == "4.5" ]]; then composer global require --dev phpunit/phpunit ^5; fi
     127  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" && $WP_VERSION == "4.6" ]]; then composer global require --dev phpunit/phpunit ^5; fi
     128  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" && $WP_VERSION == "4.7" ]]; then composer global require --dev phpunit/phpunit ^6; fi
     129  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" && $WP_VERSION == "4.8" ]]; then composer global require --dev phpunit/phpunit ^6; fi
     130  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" && $WP_VERSION == "master" ]]; then composer global require --dev phpunit/phpunit ^6; fi
     131  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then composer global require --dev phpunit/phpunit ^6; fi
     132  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then composer global require --dev phpunit/phpunit ^6; fi
    127133  - npm install
    128134# Run tests
Note: See TracChangeset for help on using the changeset viewer.