]> git.mxchange.org Git - friendica.git/blobdiff - .travis.yml
Use MYSQL_* environment variables for tests
[friendica.git] / .travis.yml
index fe436c5ddda1ff6b5f5ea211b539f1c48c232992..b722fe77f11bc52f2bb34b5217b26dcd7d2760a8 100644 (file)
@@ -2,9 +2,17 @@
 language: php
 ## Friendica supports PHP version >= 5.6
 php:
      - 5.6
      - 7.0
      - 7.1
      - 7.2
+ - 5.6
+ - 7.0
+ - 7.1
+ - 7.2
 
-install: composer install
+services:
+ - mysql
+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;'