egroupware_official/.travis.yml

80 lines
2.3 KiB
YAML
Raw Normal View History

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"
#services:
# - mysql
2016-05-29 15:48:51 +02:00
# - postgres
2016-05-29 15:41:12 +02:00
2016-05-30 18:31:46 +02:00
sudo: required
2016-05-30 18:43:03 +02:00
dist: trusty
# this myy fix hhvm builds according to https://docs.travis-ci.com/user/languages/php#HHVM-versions-on-Trusty
group: edge
2016-05-30 18:27:31 +02:00
2016-05-29 15:41:12 +02:00
before_script:
2016-07-19 14:18:16 +02:00
- sudo apt-get update -qq
- sudo apt-get install -y myrepos libpcre3-dev
- case $(phpenv version-name) in
"5.4")
yes "" | pecl install memcache;
echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
yes "" | pecl install apcu-4.0.11;
echo "extension=apcu.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
yes "" | pecl install igbinary;
echo "extension=igbinary.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
;;
"5.5"|"5.6")
yes "" | pecl install memcache;
yes "" | pecl install apcu-4.0.11;
yes "" | pecl install igbinary;
echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
;;
"7")
yes "" | pecl install apcu;
echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
;;
"hhvm")
;;
esac
#- php -m
2016-05-29 15:41:12 +02:00
- rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
#- composer update --prefer-source $LOWEST_DEPS
2016-05-30 18:31:46 +02:00
- sudo apt-get update -qq
2016-05-30 19:40:36 +02:00
- sudo apt-get install -y myrepos
- mr --trust-all --stats up
- (cd activesync; mr --trust-all --stats up)
# installing phpunit in version suitable for used PHP version
- composer update phpunit/phpunit
2016-07-19 14:18:16 +02:00
# create data directory
- sudo mkdir /var/lib/egroupware
- sudo chown travis /var/lib/egroupware
2016-05-29 15:41:12 +02:00
script:
2016-07-19 14:18:16 +02:00
# install egroupware
- php doc/rpm-build/post_install.php
--source_dir `pwd` --start_db '' --autostart_db '' --start_webserver '' --webserver_user ''
2016-07-19 14:18:16 +02:00
#- mysql -uroot -e 'show tables' egroupware
# Ubuntu has problems with #!/usr/bin/env php -dapc.enable=1, it stalls forever
- php -dapc.enable_cli=1 doc/test-cli.php
- ./doc/php_syntax_check.sh
- ./doc/test-cli.php
2016-05-29 15:41:12 +02:00
cache:
directories:
- $HOME/.composer/cache