]> git.mxchange.org Git - friendica.git/blobdiff - .travis.yml
Fixed memcache & unittests
[friendica.git] / .travis.yml
index d68b7727e893648344978d94f4ff378589a62e15..93d1190f239d9362ae648f6186395b0e79c5c23c 100644 (file)
@@ -7,4 +7,18 @@ php:
  - 7.1
  - 7.2
 
-install: composer install
+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:
+ - 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
+ - echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
\ No newline at end of file