Skip to content

Commit

Permalink
Create schema based on config file (on MySQL & MariaDB)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcobucci committed Jun 22, 2017
1 parent e8332a4 commit af1b66a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ before_script:
- composer install --prefer-source
- if [ "$DEPENDENCIES" != "low" ]; then composer update; fi;
- if [ "$DEPENDENCIES" == "low" ]; then composer update --prefer-lowest; fi;
- if [[ $DB == "mysql" || $DB == "mariadb" ]]; then SCHEMA=`xmllint --xpath 'string(//var[@name="db_name"]/@value)' tests/travis/$DB.travis.xml` && mysql -e "CREATE SCHEMA $SCHEMA; GRANT ALL PRIVILEGES ON $SCHEMA.* to travis@'%'"; fi;

script:
- ENABLE_SECOND_LEVEL_CACHE=0 ./vendor/bin/phpunit -v -c tests/travis/$DB.travis.xml $PHPUNIT_FLAGS
Expand Down

0 comments on commit af1b66a

Please sign in to comment.