Skip to content

Commit

Permalink
Merge pull request #447 from humanmade/develop
Browse files Browse the repository at this point in the history
Version 1.1
  • Loading branch information
mikeselander authored Dec 15, 2017
2 parents 2ba643d + 99afe7d commit 6e3596c
Show file tree
Hide file tree
Showing 79 changed files with 5,223 additions and 2,470 deletions.
45 changes: 35 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,61 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm

env:
- WP_VERSION=latest WP_MULTISITE=0
- WP_VERSION=latest WP_MULTISITE=1
- WP_VERSION=3.8 WP_MULTISITE=0
- WP_VERSION=3.8 WP_MULTISITE=1
- WP_VERSION=4.1 WP_MULTISITE=0
- WP_VERSION=4.1 WP_MULTISITE=1

matrix:
allow_failures:
- php: hhvm
fast_finish: true
exclude:
# Only test latest version of WP with HHVM
# We really only need to verify that each PHP/WP combination works generally, not that multisite works between them
- php: 5.4
env: WP_VERSION=4.1 WP_MULTISITE=1
- php: 5.4
env: WP_VERSION=latest WP_MULTISITE=1
- php: 5.5
env: WP_VERSION=4.1 WP_MULTISITE=1
- php: 5.5
env: WP_VERSION=latest WP_MULTISITE=1
- php: 7.0
env: WP_VERSION=latest WP_MULTISITE=1
# Only test latest version of WP with HHVM
- php: hhvm
env: WP_VERSION=3.8 WP_MULTISITE=0
env: WP_VERSION=4.1 WP_MULTISITE=0
- php: hhvm
env: WP_VERSION=3.8 WP_MULTISITE=1
# Only test latest version of WP with PHP 7.0 because 3.8 won't work at all
env: WP_VERSION=4.1 WP_MULTISITE=1
# Only test latest version of WP with PHP 7.0+ because 4.1 won't work at all
- php: 7.0
env: WP_VERSION=3.8 WP_MULTISITE=0
env: WP_VERSION=4.1 WP_MULTISITE=0
- php: 7.0
env: WP_VERSION=3.8 WP_MULTISITE=1
env: WP_VERSION=4.1 WP_MULTISITE=1
- php: 7.1
env: WP_VERSION=4.1 WP_MULTISITE=0
- php: 7.1
env: WP_VERSION=4.1 WP_MULTISITE=1

before_script:
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
composer global require "phpunit/phpunit=5.7.*"
elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
composer global require "phpunit/phpunit=4.8.*"
fi
- which phpunit
- phpunit --version

script: phpunit
script:
- phpunit
Loading

0 comments on commit 6e3596c

Please sign in to comment.