]> git.mxchange.org Git - friendica.git/blob - .travis.yml
Merge pull request #7027 from nupplaphil/task/mod_statistics_json
[friendica.git] / .travis.yml
1 ---
2 language: php
3 ## Friendica officially supports PHP version >= 7.1
4 php:
5  - 7.1
6  - 7.2
7  - 7.3
8
9 services:
10  - mysql
11  - redis-server
12  - memcached
13 env:
14  - MYSQL_HOST=localhost MYSQL_PORT=3306 MYSQL_USERNAME=travis MYSQL_PASSWORD= MYSQL_DATABASE=test
15
16 install:
17  - composer install
18 before_script:
19  - cp config/local-sample.config.php config/local.config.php
20  - mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
21  - mysql -utravis test < database.sql
22  - pecl channel-update pecl.php.net
23  - pecl config-set preferred_state beta
24  - if [[ $TRAVIS_PHP_VERSION != "7.1" ]]; then echo yes | pecl upgrade apcu; fi
25  - if [[ $TRAVIS_PHP_VERSION != "7.1" ]]; then phpenv config-add .travis/apcu.ini; fi
26  - phpenv config-add .travis/redis.ini
27  - phpenv config-add .travis/memcached.ini
28
29 after_success: bash <(curl -s https://codecov.io/bash)