1
1
Fork 0
friendica_2019-12_sharedHos.../.travis.yml

28 lines
662 B
YAML
Raw Normal View History

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
- redis-server
- memcached
2018-04-09 21:23:41 +02:00
env:
- 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:
- 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;'
- mysql -utravis test < database.sql
2019-04-20 18:11:24 +02: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
script: vendor/bin/phpunit --configuration tests/phpunit.xml