2018-04-09 19:49:23 +00:00
|
|
|
---
|
|
|
|
language: php
|
2019-01-23 03:02:35 +00:00
|
|
|
## Friendica officially supports PHP version >= 7.1
|
2018-04-22 12:56:59 +00:00
|
|
|
php:
|
2018-04-23 05:42:48 +00:00
|
|
|
- 7.1
|
|
|
|
- 7.2
|
2019-01-23 03:02:35 +00:00
|
|
|
- 7.3
|
2018-04-22 12:56:59 +00:00
|
|
|
|
2018-04-09 19:23:41 +00:00
|
|
|
services:
|
|
|
|
- mysql
|
2020-04-26 07:49:35 +00:00
|
|
|
- redis
|
2018-07-07 14:15:03 +00:00
|
|
|
- memcached
|
2018-04-09 19:23:41 +00:00
|
|
|
env:
|
2020-02-29 15:09:25 +00:00
|
|
|
- MYSQL_HOST=localhost MYSQL_PORT=3306 MYSQL_USERNAME=travis MYSQL_PASSWORD="" MYSQL_DATABASE=test
|
2018-04-09 19:23:41 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- composer install
|
|
|
|
before_script:
|
2018-11-25 06:44:09 +00:00
|
|
|
- cp config/local-sample.config.php config/local.config.php
|
2018-04-09 19:23:41 +00:00
|
|
|
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
|
2018-07-04 01:24:42 +00:00
|
|
|
- mysql -utravis test < database.sql
|
2019-04-20 16:11:24 +00:00
|
|
|
- pecl channel-update pecl.php.net
|
|
|
|
- pecl config-set preferred_state beta
|
|
|
|
- phpenv config-add .travis/redis.ini
|
|
|
|
- phpenv config-add .travis/memcached.ini
|
|
|
|
|
2020-02-09 23:55:17 +00:00
|
|
|
script:
|
|
|
|
- vendor/bin/parallel-lint --exclude vendor/ --exclude view/asset/ .
|
|
|
|
- vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml
|
2019-12-01 07:51:14 +00:00
|
|
|
|
|
|
|
after_success: bash <(curl -s https://codecov.io/bash)
|