1
1
Fork 0
friendica_2019-12_sharedHos.../.travis.yml
Philipp 30c87a47ff Adding Code-Coverage to the Friendica code-base (#5570)
* friendica-5568 Adding Code-Coverage to the Friendica code-base

* Adding codecov.io-badge

* removing badge for now
2018-08-08 11:43:06 +02:00

25 lines
665 B
YAML

---
language: php
## Friendica supports PHP version >= 5.6.1
php:
- 5.6
- 7.0
- 7.1
- 7.2
services:
- mysql
- redis-server
- memcached
env:
- MYSQL_HOST=localhost MYSQL_PORT=3306 MYSQL_USERNAME=travis MYSQL_PASSWORD= MYSQL_DATABASE=test
install:
- composer install
before_script:
- cp config/local-sample.ini.php config/local.ini.php
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
- mysql -utravis test < database.sql
- echo "extension=redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
after_success: bash <(curl -s https://codecov.io/bash)