Skip to content

Commit

Permalink
dev-lib: fix failures on PHP 5.2 & 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
JDGrimes committed Sep 21, 2017
1 parent 8211ec4 commit aa002a2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
37 changes: 31 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,57 @@
language: php

php:
- 7.2
- 7.1
- 7.0
- 5.6
- 5.5
- 5.4
- 5.3
- 5.2

env:
- TRAVISCI_RUN=codesniff
- TRAVISCI_RUN=phpunit WP_VERSION=develop
- TRAVISCI_RUN=phpunit WP_VERSION=4.8
- TRAVISCI_RUN=phpunit WP_VERSION=4.7

dist: trusty

sudo: false

addons:
apt:
packages:
# Needed for `xmllint`.
- libxml2-utils

matrix:
include:
# Use Ubuntu Precise because Trusty doesn't support PHP 5.2 or 5.3.
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=develop
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.7
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=develop
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.7
# Only run nightly against trunk.
- php: nightly
env: TRAVISCI_RUN=phpunit WP_VERSION=develop
exclude:
# The codesniff pass only needs to be run once.
- php: 7.2
env: TRAVISCI_RUN=codesniff
- php: 7.0
env: TRAVISCI_RUN=codesniff
- php: 5.6
Expand All @@ -34,12 +62,9 @@ matrix:
env: TRAVISCI_RUN=codesniff
- php: 5.4
env: TRAVISCI_RUN=codesniff
- php: 5.3
env: TRAVISCI_RUN=codesniff
- php: 5.2
env: TRAVISCI_RUN=codesniff
allow_failures:
- php: nightly
- php: 7.2
fast_finish: true

before_script:
Expand Down
2 changes: 1 addition & 1 deletion dev-lib

0 comments on commit aa002a2

Please sign in to comment.