]> git.mxchange.org Git - friendica.git/blobdiff - .travis.yml
Fixes:
[friendica.git] / .travis.yml
index fe436c5ddda1ff6b5f5ea211b539f1c48c232992..6d133a0b4a641e3cc40b90c76f667383ea455e44 100644 (file)
@@ -1,10 +1,25 @@
 ---
 language: php
-## Friendica supports PHP version >= 5.6
+## Friendica supports PHP version >= 5.6.1
 php:
-       - 5.6
-       - 7.0
-       - 7.1
-       - 7.2
+ - 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
 
-install: composer install