forked from zendframework/zf1
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
44 lines (33 loc) · 1.12 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: php
sudo: false
php:
- 5.2
- 5.3
- 5.4
- 5.5
- 5.6
- 7
- hhvm
env: TMPDIR=/tmp
install:
- if [[ "$TRAVIS_PHP_VERSION" == "5.2" ]]; then sh ./tests/php52_install_dependencies.sh; fi
- phpenv rehash
services:
- memcached
before_script:
- phpenv config-rm xdebug.ini || return 0
- if [[ "$TRAVIS_PHP_VERSION" != "5.2" ]]; then travis_retry composer self-update; fi
- if [[ "$TRAVIS_PHP_VERSION" != "5.2" ]]; then travis_retry composer install --no-interaction --prefer-source --dev; fi
- mysql -e 'create database zftest;'
- psql -c 'create database zftest;' -U postgres
- if [[ "$TRAVIS_PHP_VERSION" != "5.2" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]] && [[ "$TRAVIS_PHP_VERSION" != "7" ]]; then phpenv config-add tests/config.ini; fi
- if [[ "$TRAVIS_PHP_VERSION" == "5.2" ]]; then phpenv config-add tests/php52_config.ini; fi
- if [[ "$TRAVIS_PHP_VERSION" == "7" ]]; then phpenv config-add tests/php7_config.ini; fi
- cp ./tests/TestConfiguration.travis.php ./tests/TestConfiguration.php
script:
- cd tests/
- php runalltests.php
matrix:
allow_failures:
- php: 7
- php: hhvm