-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
36 lines (36 loc) · 1.42 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
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:
- mongodb
- mysql
- postgresql
before_install:
- mysql -e "create database IF NOT EXISTS test;" -uroot
- psql -c "create database test;" -U postgres
before_script:
- export ACTIVESYNC_MONGO_TEST_CONFIG='{"activesync":{"mongo":{"hostspec":"localhost"}}}';
export ACTIVESYNC_SQL_MYSQL_TEST_CONFIG='{"activesync":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}';
export ACTIVESYNC_SQL_MYSQLI_TEST_CONFIG='{"activesync":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}';
export ACTIVESYNC_SQL_PDO_MYSQL_TEST_CONFIG='{"activesync":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}';
- 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.horde.org/Horde_Test
- pear install -a -B package.xml
script:
- php $(pear config-get php_dir)/Horde/Test/vendor/phpunit/phpunit/phpunit