Skip to content

Commit

Permalink
Fixing Travis build
Browse files Browse the repository at this point in the history
Travis build failed because of very slow MySQL queries execution.
According to MySQL 5.7.23 [release notes](https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-23.html#mysqld-5-7-23-bug)
the `mysql_upgrade` command MUST be run after upgrading to this release.
Otherwise MySQL will flood logs with a warging that results in a performance problems.
  • Loading branch information
SilverFire committed Aug 29, 2018
1 parent c286f00 commit 0e3a661
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 19 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ before_script:
php -r "echo INTL_ICU_DATA_VERSION . \"\n\";"
psql --version
mysql --version
sudo mysql_upgrade
fi
- |
if [ $TASK_TESTS_JS == 1 ]; then
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
"require-dev": {
"phpunit/phpunit": "4.8.34",
"cebe/indent": "~1.0.2",
"friendsofphp/php-cs-fixer": "~2.2.3"
"friendsofphp/php-cs-fixer": "~2.2.3",
"johnkary/phpunit-speedtrap": "^1.0"
},
"repositories": [
{
Expand Down
74 changes: 56 additions & 18 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@
<directory suffix=".php">framework/bootstrap</directory>
</blacklist>
</filter>
<listeners>
<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener" />
</listeners>
</phpunit>

0 comments on commit 0e3a661

Please sign in to comment.