Update .travis.yml

This commit is contained in:
Champ Camba
2019-08-28 18:07:52 +08:00
parent 74126aca70
commit 917ac4b9a0
+37 -13
View File
@@ -13,6 +13,17 @@ cache:
- $HOME/.composer/cache/files
- $HOME/.cache/yarn
# Test main supported versions of PHP against latest WP.
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
env:
- WP_VERSION=latest WP_MULTISITE=0
# Next we define our matrix of additional build configurations to test against.
# The versions listed above will automatically create our first configuration,
# so it doesn't need to be re-defined below.
@@ -26,20 +37,33 @@ cache:
# requires at least WordPress 3.8. Specify "master" to test against SVN trunk.
matrix:
include:
#- env: WP_TRAVISCI="yarn lint"
#- env: WP_TRAVISCI="yarn test-client"
#- env: WP_TRAVISCI="yarn test-gui"
#- php: "5.5"
#- php: "5.6"
- php: "7.0"
- php: "7.1"
- php: "7.2"
fast_finish: true
include:
- name: "Coding standard check"
php: 7.2
env: WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1
- name: "e2e tests"
php: 7.2
env: WP_VERSION=latest WP_MULTISITE=0 RUN_E2E=1
addons:
chrome: beta
apt:
packages:
- nginx
- name: "Unit tests code coverage"
php: 7.3
env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1
- name: "Ultimate Member unit tests using WordPress nightly"
php: 7.3
env: WP_VERSION=nightly WP_MULTISITE=0
- php: 7.4snapshot
env: WP_VERSION=nightly WP_MULTISITE=0
allow_failures:
- php: "7.1"
- php: "7.2"
# - php: "nightly"
- php: 7.3
env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1
- php: 7.4snapshot
env: WP_VERSION=nightly WP_MULTISITE=0
# whitelist branches for the "push" build check.
branches:
@@ -76,7 +100,7 @@ sudo: false
# We need notifications for successful builds
notifications:
webhooks: https:/ultimatemember.com/travis.php
webhooks: https://ultimatemember.com/travis.php
email:
- heychampsupertramp@gmail.com
# Encrypted Slack notification address.