]> git.mxchange.org Git - friendica.git/blob - .travis.yml
Merge pull request #7988 from friendica/MrPetovan-notice
[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  - phpenv config-add .travis/redis.ini
25  - phpenv config-add .travis/memcached.ini
26
27 script: vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml
28
29 after_success: bash <(curl -s https://codecov.io/bash)