egroupware_official/.travis.yml

89 lines
3.1 KiB
YAML
Raw Normal View History

2016-05-29 15:41:12 +02:00
language: php
php:
- 7.0
- 7.1
- 7.2
2019-02-07 17:20:13 +01:00
- 7.3
# none of our dependencies allow 8.0
# - master
2016-05-29 15:41:12 +02:00
matrix:
fast_finish: true
# allow_failures:
# - php: master
2016-05-29 15:41:12 +02:00
services:
- memcached
# - mysql we use mariadb instead installed via addons below
- postgres
2016-05-29 15:41:12 +02:00
addons:
mariadb: '10.0'
2016-05-30 18:31:46 +02:00
sudo: required
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
- sudo apt-get install -y libpcre3-dev
2016-07-12 22:08:49 +02:00
- case $(phpenv version-name) in
"5.6")
yes "" | pecl install memcache;
2016-07-12 22:08:49 +02:00
yes "" | pecl install apcu-4.0.11;
yes "" | pecl install igbinary;
echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
phpenv config-rm xdebug.ini;
2016-07-12 21:54:14 +02:00
;;
"7"|"7.0"|"7.1"|"7.2")
2016-07-12 22:08:49 +02:00
yes "" | pecl install apcu;
echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
phpenv config-rm xdebug.ini;
;;
"7.3"|"master")
echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
;;
esac
- case $(phpenv version-name) in
"5.6")
composer require 'phpunit/phpunit:~5.7';
;;
2018-10-18 11:23:16 +02:00
"7"|"7.0")
composer require 'phpunit/phpunit:~6';
;;
*)
composer require --ignore-platform-reqs 'phpunit/phpunit:~7';
;;
2016-07-12 21:54:14 +02:00
esac
#- php -m
2017-10-19 09:26:50 +02:00
- php -i
- php install-cli.php --ignore-platform-reqs
2016-07-19 14:18:16 +02:00
# create data directory
- sudo mkdir /var/lib/egroupware
- sudo chown travis /var/lib/egroupware
- ln -s /var/lib/egroupware/header.inc.php
2016-05-29 15:41:12 +02:00
script:
# install egroupware using MariaDB as domain "default"
# and add an admin user "demo" with password "guest"
- php doc/rpm-build/post_install.php --domain default
--source_dir `pwd` --start_db '' --autostart_db '' --start_webserver '' --webserver_user ''
2017-10-23 18:57:51 +02:00
--admin_user demo --admin_passwd guest --admin_email noreply@example.com
# disable PostgreSQL install as it fails in Travis with Fatal error: Call to unimplemented native function pg_set_client_encoding
# 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-18 20:17:02 +02:00
# disable postgres install for hhvm, as there is no psql extension
#- test $(phpenv version-name) = 'hhvm' ||
# php doc/rpm-build/post_install.php --domain pgsql --db_type pgsql --db_port 5432 --db_user postgres --db_pass ''
# --source_dir `pwd` --start_db '' --autostart_db '' --start_webserver '' --webserver_user ''
# 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 ''
# Ubuntu has problems with #!/usr/bin/env php -dapc.enable=1, it stalls forever
2018-05-03 19:14:58 +02:00
- vendor/bin/phpunit -c doc -dapc.enable_cli=1
# 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