Skip to content

Commit 4b469eb

Browse files
authored
Merge pull request #3194 from momozor/travis-mysql-perf
Improve mysql performance on Travis
2 parents bf1bed1 + 89e3098 commit 4b469eb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ cache:
2525
symfony/flex
2626
- &run-behat-tests |
2727
vendor/bin/behat --format=progress --no-interaction --colors
28-
- &run-phpunit-tests |
29-
vendor/bin/phpunit --colors=always
3028
- &update-project-dependencies |
3129
composer update --no-progress --no-suggest --ansi
3230
- &validate-openapi-v2-json |
@@ -187,6 +185,15 @@ jobs:
187185
services:
188186
- mysql
189187
before_install:
188+
- sudo systemctl stop mysql
189+
- sudo mv /var/lib/mysql /var/ramfs/mysql
190+
- sudo ln -s /var/ramfs/mysql /var/lib/mysql
191+
- |
192+
{
193+
echo '[mysqld]';
194+
echo 'innodb_flush_log_at_trx_commit=0';
195+
} | sudo tee /etc/mysql/conf.d/performance.cnf
196+
- sudo systemctl start mysql
190197
- *enable-mongodb-php-extension
191198
- *disable-xdebug-php-extension
192199
- *disable-php-memory-limit

0 commit comments

Comments
 (0)