forked from horde/HashTable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 950 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
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- nightly
jobs:
fast_finish: true
allow_failures:
- php: nightly
services:
- memcached
- redis-server
before_script:
- export HASHTABLE_MEMCACHE_TEST_CONFIG='{"hashtable":{"memcache":{"hostspec":["localhost"],"port":[11211]}}}';
export HASHTABLE_PREDIS_TEST_CONFIG='{"hashtable":{"predis":{"hostspec":["localhost"],"scheme":"tcp","database":0}}}';
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ] || [ $(echo "$TRAVIS_PHP_VERSION 7.0" | tr " " "\n" | sort -V | head -n1) = "7.0" ];
then
phpenv config-add .travis.php7.ini;
else
phpenv config-add .travis.ini;
fi
- phpenv config-rm xdebug.ini || echo "XDebug not enabled"
- pear install channel://pear.nrk.io/Predis
- pear install channel://pear.horde.org/Horde_Test
- pear install -a -B package.xml
script:
- php $(pear config-get php_dir)/Horde/Test/vendor/phpunit/phpunit/phpunit