Test against php 7

This commit is contained in:
Daniel Hensby 2015-02-26 01:32:47 +00:00
parent 3907688f7d
commit 069bf40f34

View File

@ -1,4 +1,4 @@
language: php language: php
php: php:
- 5.4 - 5.4
@ -13,11 +13,14 @@ env:
matrix: matrix:
- DB=MYSQL - DB=MYSQL
- DB=SQLITE - DB=SQLITE
- DB=PGSQL - DB=PGSQL
matrix: matrix:
allow_failures: allow_failures:
- php: hhvm-nightly - php: hhvm
- php: 7.0
- php: nightly
include: include:
- php: 5.5 - php: 5.5
env: DB=MYSQL env: DB=MYSQL
@ -27,7 +30,11 @@ matrix:
env: DB=MYSQL BEHAT_TEST=1 env: DB=MYSQL BEHAT_TEST=1
- php: 5.3 - php: 5.3
env: DB=MYSQL env: DB=MYSQL
- php: hhvm-nightly - php: 7.0
env: DB=MYSQL
- php: nightly
env: DB=MYSQL
- php: hhvm
env: DB=MYSQL env: DB=MYSQL
before_install: before_install:
- sudo apt-get update -qq - sudo apt-get update -qq
@ -43,7 +50,7 @@ before_script:
- php ~/travis-support/travis_setup_selenium.php --if-env BEHAT_TEST - php ~/travis-support/travis_setup_selenium.php --if-env BEHAT_TEST
- php ~/travis-support/travis_setup_php54_webserver.php --if-env BEHAT_TEST - php ~/travis-support/travis_setup_php54_webserver.php --if-env BEHAT_TEST
script: script:
- "if [ \"$BEHAT_TEST\" = \"\" ]; then vendor/bin/phpunit framework/tests; fi" - "if [ \"$BEHAT_TEST\" = \"\" ]; then vendor/bin/phpunit framework/tests; fi"
- "if [ \"$BEHAT_TEST\" = \"1\" ]; then vendor/bin/behat @framework; fi" - "if [ \"$BEHAT_TEST\" = \"1\" ]; then vendor/bin/behat @framework; fi"