X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=.travis.yml;h=e2aa84f5c81f91438475c579feb4064a770b2a0a;hb=4b4a319af99de52a3ee751b5d7f0ea2e05966550;hp=d3fffc6936cb032f0df5b3cbc8b9030fef1eadc0;hpb=c4c0d09744ccb2c9600709ccb6e64c8d6be2fd9a;p=friendica.git diff --git a/.travis.yml b/.travis.yml index d3fffc6936..e2aa84f5c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,29 @@ --- language: php -php: 5.6 -install: composer install +## Friendica officially supports PHP version >= 7.1 +php: + - 7.1 + - 7.2 + - 7.3 + +services: + - mysql + - redis-server + - memcached +env: + - MYSQL_HOST=localhost MYSQL_PORT=3306 MYSQL_USERNAME=travis MYSQL_PASSWORD= MYSQL_DATABASE=test + +install: + - composer install +before_script: + - cp config/local-sample.config.php config/local.config.php + - mysql -e 'CREATE DATABASE IF NOT EXISTS test;' + - mysql -utravis test < database.sql + - pecl channel-update pecl.php.net + - pecl config-set preferred_state beta + - if [[ $TRAVIS_PHP_VERSION != "7.1" ]]; then echo yes | pecl upgrade apcu; fi + - if [[ $TRAVIS_PHP_VERSION != "7.1" ]]; then phpenv config-add .travis/apcu.ini; fi + - phpenv config-add .travis/redis.ini + - phpenv config-add .travis/memcached.ini + +after_success: bash <(curl -s https://codecov.io/bash)