Changeset 11682 for trunk/.travis.yml
- Timestamp:
- 08/28/2017 02:20:42 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.travis.yml
r11674 r11682 14 14 - vendor 15 15 - $HOME/.composer/cache 16 # - /tmp/wordpress/src/wp-content/plugins/buddypress/node_modules 16 - /tmp/node_modules 17 18 git: 19 depth: 1 17 20 18 21 php: 19 22 - 7.1 20 - 7.021 23 - 5.6 22 - 5.523 - 5.424 24 25 25 # WordPress comes from the Git mirror, where 'master' mirrors svn 'trunk' and … … 31 31 - WP_VERSION=4.6 BP_TRAVISCI=travis:phpunit 32 32 - WP_VERSION=4.5 BP_TRAVISCI=travis:phpunit 33 - WP_VERSION=4.4 BP_TRAVISCI=travis:phpunit34 33 35 34 matrix: 36 35 include: 37 - php: 7.2 38 env: WP_VERSION=master BP_TRAVISCI=travis:phpunit 39 - php: nightly 40 env: WP_VERSION=master BP_TRAVISCI=travis:phpunit 41 - php: 7.0 42 env: WP_VERSION=master BP_TRAVISCI=travis:grunt 43 - php: 7.0 36 - php: 7.1 44 37 env: WP_VERSION=master BP_TRAVISCI=travis:codecoverage 45 38 - php: 5.3 … … 58 51 env: WP_VERSION=4.5 BP_TRAVISCI=travis:phpunit 59 52 dist: precise 60 - php: 5.361 env: WP_VERSION=4.4 BP_TRAVISCI=travis:phpunit62 dist: precise63 53 exclude: 64 54 - php: 7.1 … … 66 56 - php: 7.1 67 57 env: WP_VERSION=4.5 BP_TRAVISCI=travis:phpunit 68 - php: 7.169 env: WP_VERSION=4.4 BP_TRAVISCI=travis:phpunit70 58 allow_failures: 71 - php: 7.272 - php: nightly73 59 - env: WP_VERSION=master BP_TRAVISCI=travis:codecoverage 60 74 61 # before_install: Failures in this section will result in build status 'errored' 75 62 before_install: … … 89 76 echo "We are running codecoverage or xdebug.ini does not exist" 90 77 fi 78 91 79 # set up tests config 92 80 - cd $WP_DEVELOP_DIR … … 96 84 - sed -i "s/yourusernamehere/root/" wp-tests-config.php 97 85 - sed -i "s/yourpasswordhere//" wp-tests-config.php 86 98 87 # set up database 99 88 - mysql -e 'CREATE DATABASE wordpress_test;' -uroot 89 100 90 # prepare for running the tests 101 91 - cd $plugin_dir 92 102 93 # setup NodeJS version using NVM 103 94 - node --version 104 95 - nvm install 6 105 96 - node --version 97 - npm config set prefix "/tmp/node" 98 - export PATH="$HOME/.composer/vendor/bin:/tmp/node/bin:$PATH" 106 99 - npm install -g grunt-cli 107 100 - npm --version … … 118 111 # before_script: Failures in this section will result in build status 'errored' 119 112 before_script: 120 - export PATH="$HOME/.composer/vendor/bin:$PATH"121 113 - 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; fi123 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then composer global require --dev phpunit/phpunit ^4; fi124 114 - 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; fi126 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" && $WP_VERSION == "4.5" ]]; then composer global require --dev phpunit/phpunit ^5; fi127 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" && $WP_VERSION == "4.6" ]]; then composer global require --dev phpunit/phpunit ^5; fi128 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" && $WP_VERSION == "4.7" ]]; then composer global require --dev phpunit/phpunit ^6; fi129 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" && $WP_VERSION == "4.8" ]]; then composer global require --dev phpunit/phpunit ^6; fi130 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" && $WP_VERSION == "master" ]]; then composer global require --dev phpunit/phpunit ^6; fi131 115 - 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; fi133 116 - npm install 117 134 118 # Run tests 135 119 script: grunt $BP_TRAVISCI
Note: See TracChangeset
for help on using the changeset viewer.