run installation and all tests for postgres too

This commit is contained in:
Ralf Becker 2016-08-05 17:51:23 +02:00
parent 72bf083226
commit c65486bfc8

View File

@ -11,15 +11,15 @@ matrix:
allow_failures: allow_failures:
- php: hhvm - php: hhvm
#env: # test installation and run all tests with these databases
#matrix: env:
#- LOWEST_DEPS="" -DB=mysql
#- LOWEST_DEPS="--prefer-lowest" -DB=postgres
services: services:
- memcached - memcached
# - mysql # - mysql we use mariadb instead installed via addons below
# - postgres - postgres
addons: addons:
mariadb: '10.0' mariadb: '10.0'
@ -68,8 +68,9 @@ before_script:
- sudo chown travis /var/lib/egroupware - sudo chown travis /var/lib/egroupware
script: script:
# install egroupware # install egroupware (PostgreSQL need some specific handling as it is not the default and we can not create users via sql)
- php doc/rpm-build/post_install.php - test "$DB" = "postgres" && DB_SPECIFIC="--db_type postgres --db_port 5432 --db_user postgres --db_pass '' --db_root postgres --db_root_pw ''" || true
- php doc/rpm-build/post_install.php $DB_SPECIFIC
--source_dir `pwd` --start_db '' --autostart_db '' --start_webserver '' --webserver_user '' --source_dir `pwd` --start_db '' --autostart_db '' --start_webserver '' --webserver_user ''
#- mysql -uroot -e 'show tables' egroupware #- mysql -uroot -e 'show tables' egroupware
# Ubuntu has problems with #!/usr/bin/env php -dapc.enable=1, it stalls forever # Ubuntu has problems with #!/usr/bin/env php -dapc.enable=1, it stalls forever