Browse Source

Fixing Travis build

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.
tags/2.0.16
SilverFire - Dmitry Naumenko 6 years ago
parent
commit
0e3a66134c
No known key found for this signature in database
GPG Key ID: 39DD917A92B270A
  1. 1
      .travis.yml
  2. 3
      composer.json
  3. 74
      composer.lock
  4. 3
      phpunit.xml.dist

1
.travis.yml

@ -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

3
composer.json

@ -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": [
{

74
composer.lock generated

@ -1,10 +1,10 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "c5363e83fd40667959bed938186dbdf2",
"content-hash": "20618e7e02e835f9f1ee41b339f2b61a",
"packages": [
{
"name": "bower-asset/inputmask",
@ -52,35 +52,23 @@
"version": "v1.3.2",
"source": {
"type": "git",
"url": "https://github.com/bestiejs/punycode.js.git",
"url": "git@github.com:bestiejs/punycode.js.git",
"reference": "38c8d3131a82567bfef18da09f7f4db68c84f8a3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/bestiejs/punycode.js/zipball/38c8d3131a82567bfef18da09f7f4db68c84f8a3",
"reference": "38c8d3131a82567bfef18da09f7f4db68c84f8a3",
"shasum": ""
"shasum": null
},
"type": "bower-asset-library",
"extra": {
"bower-asset-main": "punycode.js",
"bower-asset-ignore": [
"coverage",
"tests",
".*",
"component.json",
"Gruntfile.js",
"node_modules",
"package.json"
]
}
"type": "bower-asset"
},
{
"name": "bower-asset/yii2-pjax",
"version": "2.0.7.1",
"source": {
"type": "git",
"url": "https://github.com/yiisoft/jquery-pjax.git",
"url": "git@github.com:yiisoft/jquery-pjax.git",
"reference": "aef7b953107264f00234902a3880eb50dafc48be"
},
"dist": {
@ -699,6 +687,56 @@
"time": "2014-11-20T16:49:30+00:00"
},
{
"name": "johnkary/phpunit-speedtrap",
"version": "v1.0.1",
"source": {
"type": "git",
"url": "https://github.com/johnkary/phpunit-speedtrap.git",
"reference": "76a26f8a903a9434608cdad2b41c40cd134ea326"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/johnkary/phpunit-speedtrap/zipball/76a26f8a903a9434608cdad2b41c40cd134ea326",
"reference": "76a26f8a903a9434608cdad2b41c40cd134ea326",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "3.7.*|~4.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
},
"autoload": {
"psr-0": {
"JohnKary": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "John Kary",
"email": "john@johnkary.net"
}
],
"description": "Find slow tests in your PHPUnit test suite",
"homepage": "https://github.com/johnkary/phpunit-speedtrap",
"keywords": [
"phpunit",
"profile",
"slow"
],
"time": "2015-09-13T19:01:00+00:00"
},
{
"name": "paragonie/random_compat",
"version": "v2.0.11",
"source": {

3
phpunit.xml.dist

@ -32,4 +32,7 @@
<directory suffix=".php">framework/bootstrap</directory>
</blacklist>
</filter>
<listeners>
<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener" />
</listeners>
</phpunit>

Loading…
Cancel
Save