language: php sudo: required dist: trusty services: - docker matrix: include: - php: 7.1 script: composer validate --strict after_script: ls -l composer.* - php: nightly env: - WP_VERSION=latest - CC_TEST_REPORTER_ID=62ea428024560852130fdce61b1b1f8753028c8c6c6a3ef71a3c8deb77ba887f - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi) - php: 7.1 env: - WP_VERSION=latest - CC_TEST_REPORTER_ID=62ea428024560852130fdce61b1b1f8753028c8c6c6a3ef71a3c8deb77ba887f - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi) - php: 5.6 env: WP_VERSION=latest - php: 5.6 env: WP_VERSION=3.8 # Remove 5.3 or Travis build becomes too large. # - php: 7.1 # env: WP_VERSION=latest SWITCH_TO_PHP=5.3 # - php: 7.1 # env: WP_VERSION=3.8 SWITCH_TO_PHP=5.3 - php: 7.1 env: WP_VERSION=latest SWITCH_TO_PHP=5.2 - php: 7.1 env: WP_VERSION=3.8 SWITCH_TO_PHP=5.2 - php: 5.4 env: WP_VERSION=latest - php: 5.4 env: WP_VERSION=3.8 fast_finish: true allow_failures: - env: WP_VERSION=3.8 php: nightly - env: WP_VERSION=3.8 php: 7.1 - env: WP_VERSION=latest php: nightly cache: directories: - vendor - $HOME/.composer/cache - $HOME/.phpbrew script: ./tests/bin/run-wp-unit-tests.sh after_script: ./tests/bin/after-run-wp-unit-tests.sh branches: only: - master - develop notifications: slack: rooms: - secure: g3L0XaiaUjUeBoNMLXx4pdz+7JudZhFGPY1mOX1WkC4B0zo+M/tGdhLLz/ on_success: never on_failure: change webhooks: urls: - https://webhooks.gitter.im/e/00b1df026574cdaeb815 on_success: never # options: [always|never|change] default: always on_failure: change # options: [always|never|change] default: always email: on_success: never # default: change on_failure: change # default: always