Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 6199215

Browse files
author
Jamie Snape
committed
Add hhvm to Travis CI configuration
1 parent 169f6b1 commit 6199215

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.travis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ php:
2727
- 5.5
2828
- 5.6
2929
- 7
30+
- hhvm
3031

3132
matrix:
3233
fast_finish: true
3334

3435
allow_failures:
3536
- php: 7
37+
- php: hhvm
3638

3739
before_install:
3840
- travis_retry composer self-update -n
@@ -41,12 +43,9 @@ install:
4143
- travis_retry composer install -n --prefer-dist
4244

4345
before_script:
44-
- cp tests/travis/mysql.ini tests/configs/mysql.ini
45-
- cp tests/travis/pgsql.ini tests/configs/pgsql.ini
46-
- cp tests/travis/sqlite.ini tests/configs/sqlite.ini
47-
- mysql -u root -e 'create database midas_test;'
48-
- psql -U postgres -c 'create database midas_test;'
49-
- touch midas_test.db
46+
- cp tests/travis/mysql.ini tests/configs/mysql.ini && mysql -u root -e 'create database midas_test;'
47+
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then cp tests/travis/pgsql.ini tests/configs/pgsql.ini && psql -U postgres -c 'create database midas_test;'; fi
48+
- cp tests/travis/sqlite.ini tests/configs/sqlite.ini && touch midas_test.db
5049

5150
script:
5251
- mkdir _test && cd _test

0 commit comments

Comments
 (0)