Skip to content

Commit

Permalink
Improve mysql performance on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
momozor authored and teohhanhui committed Oct 19, 2019
1 parent bf1bed1 commit 89e3098
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ cache:
symfony/flex
- &run-behat-tests |
vendor/bin/behat --format=progress --no-interaction --colors
- &run-phpunit-tests |
vendor/bin/phpunit --colors=always
- &update-project-dependencies |
composer update --no-progress --no-suggest --ansi
- &validate-openapi-v2-json |
Expand Down Expand Up @@ -187,6 +185,15 @@ jobs:
services:
- mysql
before_install:
- sudo systemctl stop mysql
- sudo mv /var/lib/mysql /var/ramfs/mysql
- sudo ln -s /var/ramfs/mysql /var/lib/mysql
- |
{
echo '[mysqld]';
echo 'innodb_flush_log_at_trx_commit=0';
} | sudo tee /etc/mysql/conf.d/performance.cnf
- sudo systemctl start mysql
- *enable-mongodb-php-extension
- *disable-xdebug-php-extension
- *disable-php-memory-limit
Expand Down

0 comments on commit 89e3098

Please sign in to comment.