Skip to content

Commit 3ac75ab

Browse files
committed
ci(gitlab): update ci
1 parent af325a0 commit 3ac75ab

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.gitlab-ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,15 @@ codequality:
101101
- develop
102102
- master
103103
allow_failure: true
104+
when: manual
104105
unit-test:
105106
stage: test
106107
services:
107-
- mysql:5.6
108-
- redis:alpine
108+
- name: mysql:5.6
109+
alias: mysql
110+
command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci','--default-storage-engine=INNODB','--innodb_large_prefix=1','--innodb_file_format=Barracuda']
111+
- name: redis:alpine
112+
alias: redis
109113
variables:
110114
MYSQL_ROOT_PASSWORD: root
111115
MYSQL_DATABASE: web
@@ -130,8 +134,11 @@ unit-test:
130134
api-test:
131135
stage: test
132136
services:
133-
- mysql:5.6
134-
- redis:alpine
137+
- name: mysql:5.6
138+
alias: mysql
139+
command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci','--default-storage-engine=INNODB','--innodb_large_prefix=1','--innodb_file_format=Barracuda']
140+
- name: redis:alpine
141+
alias: redis
135142
variables:
136143
MYSQL_ROOT_PASSWORD: root
137144
MYSQL_DATABASE: web

0 commit comments

Comments
 (0)