2018-04-09 19:49:23 +00:00
|
|
|
---
|
|
|
|
language: php
|
2018-04-22 12:56:59 +00:00
|
|
|
## Friendica supports PHP version >= 5.6
|
|
|
|
php:
|
2018-04-23 05:42:48 +00:00
|
|
|
- 5.6
|
|
|
|
- 7.0
|
|
|
|
- 7.1
|
|
|
|
- 7.2
|
2018-04-22 12:56:59 +00:00
|
|
|
|
2018-04-09 19:23:41 +00:00
|
|
|
services:
|
|
|
|
- mysql
|
2018-07-07 14:15:03 +00:00
|
|
|
- redis-server
|
|
|
|
- memcached
|
2018-04-09 19:23:41 +00:00
|
|
|
env:
|
2018-07-03 12:26:44 +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:
|
|
|
|
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
|
2018-07-04 01:24:42 +00:00
|
|
|
- mysql -utravis test < database.sql
|
2018-07-07 14:15:03 +00: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
|