octicon-rss(16/)
You've already forked yii2
mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 02:13:17 +08:00
Fix MySQL database setup for ubuntu trusty
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
committed by
Carsten Brandt
gitea-unlock(16/)
parent
a7ee60f9d2
commit
8c0a431c66
octicon-diff(16/tw-mr-1) 1 changed files with 4 additions and 10 deletions
14
.travis.yml
14
.travis.yml
@@ -99,18 +99,12 @@ before_script:
|
||||
- psql --version
|
||||
|
||||
# initialize databases
|
||||
- |
|
||||
if [[ $TRAVIS_PHP_VERSION != hhv* ]]; then
|
||||
mysql -e 'CREATE DATABASE `yiitest`;'
|
||||
fi
|
||||
- |
|
||||
if [[ $TRAVIS_PHP_VERSION = hhv* ]]; then
|
||||
mysql -u root -e 'CREATE DATABASE yiitest;';
|
||||
mysql -u root -e 'CREATE USER 'travis'@'localhost' IDENTIFIED WITH mysql_native_password;'
|
||||
mysql -u root -e 'GRANT ALL PRIVILEGES ON *.* TO 'travis'@'localhost' WITH GRANT OPTION;'
|
||||
fi
|
||||
- mysql -e 'CREATE DATABASE `yiitest`;';
|
||||
- mysql -e "CREATE USER 'travis'@'localhost' IDENTIFIED WITH mysql_native_password;";
|
||||
- mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'travis'@'localhost' WITH GRANT OPTION;";
|
||||
- psql -U postgres -c 'CREATE DATABASE yiitest;';
|
||||
|
||||
# enable code coverage on PHP 5.6, only one PHP version needs to generate coverage data
|
||||
- |
|
||||
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
|
||||
PHPUNIT_FLAGS="--coverage-clover=coverage.clover"
|
||||
|
||||
Reference in New Issue
Block a user