2016-05-29 15:41:12 +02:00
|
|
|
language: php
|
|
|
|
php:
|
2016-08-18 18:45:10 +02:00
|
|
|
- 5.4
|
2016-05-29 15:41:12 +02:00
|
|
|
- 5.5
|
|
|
|
- 5.6
|
|
|
|
- 7
|
|
|
|
- hhvm
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
|
|
|
- php: hhvm
|
|
|
|
|
2016-07-12 16:54:40 +02:00
|
|
|
services:
|
|
|
|
- memcached
|
2016-08-05 17:51:23 +02:00
|
|
|
# - mysql we use mariadb instead installed via addons below
|
|
|
|
- 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:08:49 +02:00
|
|
|
- case $(phpenv version-name) in
|
2016-08-18 18:45:10 +02:00
|
|
|
"5.4")
|
2016-08-13 11:31:45 +02:00
|
|
|
php -m;
|
2016-08-13 12:30:05 +02:00
|
|
|
pecl config-show;
|
2016-08-13 14:31:07 +02:00
|
|
|
pecl config-show|grep /5.6|cut -c 32-|sed "s/5\.6\.[0-9]*/5.4.45/g"|xargs -t -L 1 pecl config-set;
|
2016-08-13 13:12:41 +02:00
|
|
|
pecl config-show;
|
2016-07-12 22:52:30 +02:00
|
|
|
yes "" | pecl install memcache;
|
2016-07-12 22:08:49 +02:00
|
|
|
yes "" | pecl install apcu-4.0.11;
|
|
|
|
yes "" | pecl install igbinary;
|
2016-08-13 12:30:05 +02:00
|
|
|
echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
|
2016-08-06 13:04:42 +02:00
|
|
|
phpenv config-rm xdebug.ini;
|
2016-08-13 11:31:45 +02:00
|
|
|
php -m;
|
2016-07-12 21:54:14 +02:00
|
|
|
;;
|
2016-07-12 22:37:30 +02:00
|
|
|
"5.5"|"5.6")
|
2016-07-12 22:52:30 +02:00
|
|
|
yes "" | pecl install memcache;
|
2016-07-12 22:37:30 +02:00
|
|
|
yes "" | pecl install apcu-4.0.11;
|
|
|
|
yes "" | pecl install igbinary;
|
2016-08-13 12:30:05 +02:00
|
|
|
echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
|
2016-08-06 13:04:42 +02:00
|
|
|
phpenv config-rm xdebug.ini;
|
2016-07-12 22:37:30 +02:00
|
|
|
;;
|
2016-07-12 22:52:30 +02:00
|
|
|
"7")
|
2016-07-12 22:08:49 +02:00
|
|
|
yes "" | pecl install apcu;
|
2016-08-13 12:30:05 +02:00
|
|
|
echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
|
2016-08-06 13:04:42 +02:00
|
|
|
phpenv config-rm xdebug.ini;
|
2016-07-12 23:17:55 +02:00
|
|
|
;;
|
|
|
|
"hhvm")
|
2016-07-12 21:54:14 +02:00
|
|
|
;;
|
|
|
|
esac
|
2016-08-06 10:35:48 +02:00
|
|
|
#- php -m
|
2016-08-03 13:53:39 +02:00
|
|
|
- curl https://svn.stylite.de/fix_mrconfig 2>/dev/null | php
|
2016-05-30 18:19:48 +02:00
|
|
|
- mr --trust-all --stats up
|
2016-07-19 13:40:55 +02:00
|
|
|
- (cd activesync; 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-19 14:18:16 +02:00
|
|
|
# create data directory
|
2016-07-12 20:18:05 +02:00
|
|
|
- sudo mkdir /var/lib/egroupware
|
|
|
|
- sudo chown travis /var/lib/egroupware
|
2016-08-07 10:38:43 +02:00
|
|
|
- ln -s /var/lib/egroupware/header.inc.php
|
2016-05-29 15:41:12 +02:00
|
|
|
|
|
|
|
script:
|
2016-08-06 14:46:56 +02:00
|
|
|
# install egroupware using MariaDB as domain "default"
|
|
|
|
- php doc/rpm-build/post_install.php --domain default
|
|
|
|
--source_dir `pwd` --start_db '' --autostart_db '' --start_webserver '' --webserver_user ''
|
|
|
|
# install egroupware using PostgreSQL as domain "pgsql", need some specific handling we can not create users via sql
|
|
|
|
- psql -U postgres -c 'create database egroupware';
|
2016-08-13 14:13:40 +02:00
|
|
|
# disable postgres install for 5.4 and hhvm, as there is no psql extension
|
|
|
|
- test $(phpenv version-name) = '5.4' -o $(phpenv version-name) = 'hhvm' ||
|
|
|
|
php doc/rpm-build/post_install.php --domain pgsql --db_type pgsql --db_port 5432 --db_user postgres --db_pass ''
|
2016-08-06 14:46:56 +02:00
|
|
|
--source_dir `pwd` --start_db '' --autostart_db '' --start_webserver '' --webserver_user ''
|
2016-08-13 11:31:45 +02:00
|
|
|
# install egroupware with LDAP for account and MySQL as domain "ldap"
|
|
|
|
#- php doc/rpm-build/post_install.php --domain ldap --db_name ldap --db_user ldap
|
|
|
|
# --account-auth ldap --ldap_suffix dc=local --ldap_admin 'cn=admin,$suffix' --ldap_admin_pw secret
|
|
|
|
# --source_dir `pwd` --start_db '' --autostart_db '' --start_webserver '' --webserver_user ''
|
2016-07-12 20:18:05 +02:00
|
|
|
# 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-08-13 14:51:01 +02:00
|
|
|
# do not run syntax check for hhvm, as it always fails / get terminated after 10m
|
|
|
|
- test $(phpenv version-name) = 'hhvm' || ./doc/php_syntax_check.sh
|
2016-05-29 15:41:12 +02:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|