Skip to content

Commit 2ee58e1

Browse files
committed
Update MySQL test
1 parent b86a171 commit 2ee58e1

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.gitlab-ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,29 @@ test:php:
3737
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
3838

3939
test:php:mysql:
40-
extends: test:php
40+
stage: test
41+
timeout: 10 minutes
42+
cache:
43+
paths:
44+
- vendor/
4145
services:
4246
- name: mysql
4347
command:
4448
- --default-authentication-plugin=mysql_native_password
4549
- --local-infile=true
4650
variables:
4751
MYSQL_HOST: mysql
52+
MYSQL_DATABASE: framework-tests
53+
MYSQL_ROOT_PASSWORD: password
4854
DB_HOST: mysql
4955
DB_IMAGE: mysql
56+
before_script:
57+
- php -v
58+
- composer update
59+
script:
60+
- vendor/bin/phpunit --colors=never
61+
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
62+
5063

5164
pages:
5265
stage: deploy

0 commit comments

Comments
 (0)