-
Notifications
You must be signed in to change notification settings - Fork 443
/
.travis.yml
37 lines (30 loc) · 935 Bytes
/
.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
install: composer install --prefer-source --dev
services:
- memcache
env: PHPAR_MYSQL=mysql://root@127.0.0.1/phpar_test PHPAR_PGSQL=pgsql://postgres@127.0.0.1/phpar_test
language: php
php:
- 5.3
- 5.4
- 5.5
- 7.0
- 7.1
- nightly
matrix:
include:
- php: hhvm
dist: trusty
allow_failures:
- php: hhvm
- php: nightly
fast_finish: true
before_script:
- |
if [[ "${TRAVIS_PHP_VERSION:0:1}" == "7" ]]; then
curl -L https://github.com/websupport-sk/pecl-memcache/archive/NON_BLOCKING_IO_php7.tar.gz | tar xz;
(cd pecl-memcache-NON_BLOCKING_IO_php7 && phpize && ./configure && make && make install);
fi
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then echo 'extension = "memcache.so"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
- mysql -e 'CREATE DATABASE phpar_test;'
- psql -c 'CREATE DATABASE phpar_test;' -U postgres
script: ./vendor/bin/phpunit