2018-04-09 21:49:23 +02:00
|
|
|
---
|
|
|
|
language: php
|
2019-01-23 04:02:35 +01:00
|
|
|
## Friendica officially supports PHP version >= 7.1
|
2018-04-22 14:56:59 +02:00
|
|
|
php:
|
2018-04-23 07:42:48 +02:00
|
|
|
- 7.1
|
|
|
|
- 7.2
|
2019-01-23 04:02:35 +01:00
|
|
|
- 7.3
|
2018-04-22 14:56:59 +02:00
|
|
|
|
2018-04-09 21:23:41 +02:00
|
|
|
services:
|
|
|
|
- mysql
|
2018-07-07 16:15:03 +02:00
|
|
|
- redis-server
|
|
|
|
- memcached
|
2018-04-09 21:23:41 +02:00
|
|
|
env:
|
2018-07-03 14:26:44 +02:00
|
|
|
- MYSQL_HOST=localhost MYSQL_PORT=3306 MYSQL_USERNAME=travis MYSQL_PASSWORD= MYSQL_DATABASE=test
|
2018-04-09 21:23:41 +02:00
|
|
|
|
|
|
|
install:
|
|
|
|
- composer install
|
|
|
|
before_script:
|
2018-11-25 07:44:09 +01:00
|
|
|
- cp config/local-sample.config.php config/local.config.php
|
2018-04-09 21:23:41 +02:00
|
|
|
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
|
2018-07-04 03:24:42 +02:00
|
|
|
- mysql -utravis test < database.sql
|
2018-07-07 16:15:03 +02:00
|
|
|
- echo "extension=redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
|
|
|
- echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
2019-04-20 17:37:57 +02:00
|
|
|
- echo "apc.enable_cli = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
2018-08-08 11:43:06 +02:00
|
|
|
after_success: bash <(curl -s https://codecov.io/bash)
|