From 9cc7b3f6a2edbffae586186b5617f7b4074199b9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 12 Jul 2016 20:18:05 +0200 Subject: [PATCH] Travis: enable apcu, memcache(d) extension, start mysql and install egroupware --- .travis.yml | 18 +++++++++++++++--- travis.ini | 4 ++++ travis.php7.ini | 4 ++++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 travis.ini create mode 100644 travis.php7.ini diff --git a/.travis.yml b/.travis.yml index db16de7929..5e8e006406 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ matrix: services: - memcached -# - mysql + - mysql # - postgres sudo: required @@ -27,6 +27,13 @@ dist: trusty group: edge before_script: + - if [ "$TRAVIS_PHP_VERSION" == "7.0" ] || [ $(echo "$TRAVIS_PHP_VERSION 7.0" | tr " " "\n" | sort -V | head -n1) = "7.0" ]; + then + phpenv config-add .travis.php7.ini; + else + phpenv config-add .travis.ini; + fi + - php -m # - mysql -e 'create database egroupware' - rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini #- composer update --prefer-source $LOWEST_DEPS @@ -35,11 +42,16 @@ before_script: - mr --trust-all --stats up # installing phpunit in version suitable for used PHP version - composer update phpunit/phpunit + # install egroupware + - sudo mkdir /var/lib/egroupware + - sudo chown travis /var/lib/egroupware script: - - ./doc/php_syntax_check.sh - # Ubuntu has problems with #!/usr/bin/evn php, it stalls forever + - php doc/rpm-build/post_install.php --sourcedir `pwd` + - mysql -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 cache: directories: diff --git a/travis.ini b/travis.ini new file mode 100644 index 0000000000..e9687cd70b --- /dev/null +++ b/travis.ini @@ -0,0 +1,4 @@ + +extension=apcu.so +extension=memcache.so +extension=memcached.so \ No newline at end of file diff --git a/travis.php7.ini b/travis.php7.ini new file mode 100644 index 0000000000..e9687cd70b --- /dev/null +++ b/travis.php7.ini @@ -0,0 +1,4 @@ + +extension=apcu.so +extension=memcache.so +extension=memcached.so \ No newline at end of file