2016-05-29 15:41:12 +02:00
|
|
|
language: php
|
|
|
|
php:
|
|
|
|
- 5.4
|
|
|
|
- 5.5
|
|
|
|
- 5.6
|
|
|
|
- 7
|
|
|
|
- hhvm
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
|
|
|
- php: hhvm
|
|
|
|
|
|
|
|
#env:
|
|
|
|
#matrix:
|
|
|
|
#- LOWEST_DEPS=""
|
|
|
|
#- LOWEST_DEPS="--prefer-lowest"
|
|
|
|
|
2016-07-12 16:54:40 +02:00
|
|
|
services:
|
|
|
|
- memcached
|
2016-07-12 21:16:37 +02:00
|
|
|
# - mysql
|
2016-05-29 15:48:51 +02:00
|
|
|
# - postgres
|
2016-05-29 15:41:12 +02:00
|
|
|
|
2016-07-12 21:16:37 +02:00
|
|
|
addons:
|
|
|
|
mariadb: '10.0'
|
|
|
|
|
2016-05-30 18:31:46 +02:00
|
|
|
sudo: required
|
2016-05-30 18:43:03 +02:00
|
|
|
dist: trusty
|
2016-07-12 16:54:40 +02:00
|
|
|
# this fixes hhvm builds according to https://docs.travis-ci.com/user/languages/php#HHVM-versions-on-Trusty
|
2016-07-11 21:38:36 +02:00
|
|
|
group: edge
|
2016-05-30 18:27:31 +02:00
|
|
|
|
2016-05-29 15:41:12 +02:00
|
|
|
before_script:
|
2016-07-12 22:08:49 +02:00
|
|
|
- sudo apt-get update -qq
|
2016-07-12 22:14:39 +02:00
|
|
|
- sudo apt-get install -y myrepos libpcre3-dev
|
2016-07-12 22:37:30 +02:00
|
|
|
- echo $(phpenv version-name)
|
2016-07-12 22:08:49 +02:00
|
|
|
- case $(phpenv version-name) in
|
2016-07-12 22:37:30 +02:00
|
|
|
"5.4")
|
|
|
|
yes "" | pecl install memcache
|
|
|
|
echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
2016-07-12 22:08:49 +02:00
|
|
|
yes "" | pecl install apcu-4.0.11;
|
2016-07-12 22:37:30 +02:00
|
|
|
echo "extension=apcu.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
|
2016-07-12 22:08:49 +02:00
|
|
|
yes "" | pecl install igbinary;
|
|
|
|
echo "extension=igbinary.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
|
2016-07-12 21:54:14 +02:00
|
|
|
;;
|
2016-07-12 22:37:30 +02:00
|
|
|
"5.5"|"5.6")
|
|
|
|
yes "" | pecl install memcache
|
|
|
|
yes "" | pecl install apcu-4.0.11;
|
|
|
|
yes "" | pecl install igbinary;
|
|
|
|
;;
|
2016-07-12 21:54:14 +02:00
|
|
|
"7.0")
|
2016-07-12 22:08:49 +02:00
|
|
|
yes "" | pecl install apcu;
|
2016-07-12 21:54:14 +02:00
|
|
|
;;
|
|
|
|
esac
|
2016-07-12 22:08:49 +02:00
|
|
|
- echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
2016-07-12 20:18:05 +02:00
|
|
|
- php -m
|
2016-05-29 15:41:12 +02:00
|
|
|
# - mysql -e 'create database egroupware'
|
|
|
|
- rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
|
|
|
|
#- composer update --prefer-source $LOWEST_DEPS
|
2016-05-30 18:19:48 +02:00
|
|
|
- mr --trust-all --stats up
|
2016-07-11 22:12:31 +02:00
|
|
|
# installing phpunit in version suitable for used PHP version
|
2016-07-11 22:17:24 +02:00
|
|
|
- composer update phpunit/phpunit
|
2016-07-12 20:18:05 +02:00
|
|
|
# install egroupware
|
|
|
|
- sudo mkdir /var/lib/egroupware
|
|
|
|
- sudo chown travis /var/lib/egroupware
|
2016-05-29 15:41:12 +02:00
|
|
|
|
|
|
|
script:
|
2016-07-12 21:16:37 +02:00
|
|
|
- php doc/rpm-build/post_install.php --source_dir `pwd`
|
2016-07-12 20:18:05 +02:00
|
|
|
- mysql -e 'show tables' egroupware
|
|
|
|
# Ubuntu has problems with #!/usr/bin/env php -dapc.enable=1, it stalls forever
|
2016-07-12 18:42:47 +02:00
|
|
|
- php -dapc.enable_cli=1 doc/test-cli.php
|
2016-07-12 20:18:05 +02:00
|
|
|
- ./doc/php_syntax_check.sh
|
2016-05-29 15:41:12 +02:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|