2018-04-09 15:49:23 -04:00
|
|
|
---
|
|
|
|
language: php
|
2018-07-01 15:15:17 -04:00
|
|
|
## Friendica supports PHP version >= 5.6.1
|
2018-04-22 08:56:59 -04:00
|
|
|
php:
|
2018-04-23 01:42:48 -04:00
|
|
|
- 5.6
|
|
|
|
- 7.0
|
|
|
|
- 7.1
|
|
|
|
- 7.2
|
2018-04-22 08:56:59 -04:00
|
|
|
|
2018-04-09 15:23:41 -04:00
|
|
|
services:
|
|
|
|
- mysql
|
2018-07-07 10:15:03 -04:00
|
|
|
- redis-server
|
|
|
|
- memcached
|
2018-04-09 15:23:41 -04:00
|
|
|
env:
|
2018-07-03 08:26:44 -04:00
|
|
|
- MYSQL_HOST=localhost MYSQL_PORT=3306 MYSQL_USERNAME=travis MYSQL_PASSWORD= MYSQL_DATABASE=test
|
2018-04-09 15:23:41 -04:00
|
|
|
|
|
|
|
install:
|
|
|
|
- composer install
|
|
|
|
before_script:
|
2018-07-08 03:16:38 -04:00
|
|
|
- cp config/local-sample.ini.php config/local.ini.php
|
2018-04-09 15:23:41 -04:00
|
|
|
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
|
2018-07-03 21:24:42 -04:00
|
|
|
- mysql -utravis test < database.sql
|
2018-07-07 10:15:03 -04: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
|
2018-08-08 05:43:06 -04:00
|
|
|
after_success: bash <(curl -s https://codecov.io/bash)
|