Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As of HHVM 3.15 pgsql is supported, add php 7.1 to tests #6014

Merged
merged 8 commits into from
Nov 5, 2016
55 changes: 37 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
sudo: false
language: php

php:
- 5.6
- 7.0
- 7.1
- nightly
- hhvm

env:
- DB=mysql
Expand All @@ -13,7 +14,7 @@ env:

before_script:
- if [[ $TRAVIS_PHP_VERSION = '7.0' && $DB = 'sqlite' ]]; then PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; else PHPUNIT_FLAGS=""; fi
- if [[ $TRAVIS_PHP_VERSION != '7.0' && $TRAVIS_PHP_VERSION != 'hhvm' ]]; then phpenv config-rm xdebug.ini; fi
- if [[ $TRAVIS_PHP_VERSION -lt '7.0' && $TRAVIS_PHP_VERSION != 'hhv*' ]]; then phpenv config-rm xdebug.ini; fi
- composer self-update
- composer install --prefer-source

Expand All @@ -26,39 +27,57 @@ after_script:
- if [[ $TRAVIS_PHP_VERSION = '7.0' && $DB = 'sqlite' ]]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi

matrix:
fast_finish: true
include:
- php: 5.6
env: DB=mariadb
addons:
mariadb: 5.5
mariadb: 10.1
- php: 7.0
env: DB=mariadb
addons:
mariadb: 5.5
- php: hhvm
env: DB=mariadb
addons:
mariadb: 5.5

- php: 5.6
env: DB=mariadb
addons:
mariadb: 10.1
- php: 7.0
- php: 7.1
env: DB=mariadb
addons:
mariadb: 10.1
- php: hhvm
env: DB=mariadb
sudo: true
dist: trusty
group: edge # until the next Trusty update
addons:
mariadb: 10.1
exclude:
env: DB=mariadb
- php: hhvm
sudo: true
dist: trusty
group: edge # until the next update
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
services:
- mysql
env: DB=mysql
- php: hhvm
sudo: true
dist: trusty
group: edge # until the next update
services:
- postgresql
env: DB=pgsql
- php: hhvm
env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
sudo: true
dist: trusty
group: edge # until the next update
env: DB=sqlite

allow_failures:
- php: 7.1
- php: nightly

sudo: false
- php: hhvm

cache:
directories:
Expand Down