Skip to content

Commit

Permalink
[BUGFIX] Import the database after the composer install (#21)
Browse files Browse the repository at this point in the history
This is required to fix the build as the database structure that is going
to be imported is only available after the composer install.

Also lock the Travis builds to precise to avoid failures when getting
a build on Trusty.
  • Loading branch information
oliverklee authored and Sam Tuke committed Jul 21, 2017
1 parent eaad8ec commit 6771bb2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
language: php

dist: precise

matrix:
include:
- php: 7.0
Expand All @@ -22,15 +24,17 @@ cache:

before_install:
- phpenv config-rm xdebug.ini

install:
- composer install

before_script:
- >
echo;
echo "Importing the database schema";
mysql -e "CREATE DATABASE ${PHPLIST_DATABASE_NAME};";
mysql ${PHPLIST_DATABASE_NAME} < vendor/phplist/phplist4-core/Database/Schema.sql;
install:
- composer install

script:
- >
echo;
Expand Down

0 comments on commit 6771bb2

Please sign in to comment.