Merge pull request #6419 from nextcloud/speed-up-mysql

Use tmpfs for mysql CI containers
This commit is contained in:
Morris Jobke 2017-09-08 15:45:24 +02:00 committed by GitHub
commit b6e759b028
1 changed files with 10 additions and 0 deletions

View File

@ -816,6 +816,8 @@ services:
environment: environment:
- POSTGRES_USER=oc_autotest - POSTGRES_USER=oc_autotest
- POSTGRES_PASSWORD=owncloud - POSTGRES_PASSWORD=owncloud
tmpfs:
- /var/lib/postgresql/data
when: when:
matrix: matrix:
DB: postgres DB: postgres
@ -826,6 +828,8 @@ services:
- MYSQL_USER=oc_autotest - MYSQL_USER=oc_autotest
- MYSQL_PASSWORD=owncloud - MYSQL_PASSWORD=owncloud
- MYSQL_DATABASE=oc_autotest - MYSQL_DATABASE=oc_autotest
tmpfs:
- /var/lib/mysql
when: when:
matrix: matrix:
DB: mysql DB: mysql
@ -836,6 +840,8 @@ services:
- MYSQL_USER=oc_autotest - MYSQL_USER=oc_autotest
- MYSQL_PASSWORD=owncloud - MYSQL_PASSWORD=owncloud
- MYSQL_DATABASE=oc_autotest - MYSQL_DATABASE=oc_autotest
tmpfs:
- /var/lib/mysql
when: when:
matrix: matrix:
DB: mysql5.6 DB: mysql5.6
@ -846,6 +852,8 @@ services:
- MYSQL_USER=oc_autotest - MYSQL_USER=oc_autotest
- MYSQL_PASSWORD=owncloud - MYSQL_PASSWORD=owncloud
- MYSQL_DATABASE=oc_autotest - MYSQL_DATABASE=oc_autotest
tmpfs:
- /var/lib/mysql
when: when:
matrix: matrix:
DB: mysql5.5 DB: mysql5.5
@ -857,6 +865,8 @@ services:
- MYSQL_PASSWORD=owncloud - MYSQL_PASSWORD=owncloud
- MYSQL_DATABASE=oc_autotest - MYSQL_DATABASE=oc_autotest
command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ] command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
tmpfs:
- /var/lib/mysql
when: when:
matrix: matrix:
DB: mysqlmb4 DB: mysqlmb4