mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-22 13:54:17 +00:00
create dummy user at before_Script
This commit is contained in:
+9
-2
@@ -1,13 +1,20 @@
|
||||
image: registry.gitlab.com/ciefworldwidesdnbhd/exchange:latest
|
||||
|
||||
before_script:
|
||||
- mysql -u root
|
||||
- CREATE USER 'francesco'@'localhost' IDENTIFIED BY 'some_pass';
|
||||
- CREATE DATABASE exchange;
|
||||
- GRANT ALL PRIVILEGES ON exchange.* TO 'francesco'@'localhost';
|
||||
- quit;
|
||||
|
||||
services:
|
||||
- mysql:5.7
|
||||
|
||||
variables:
|
||||
MYSQL_DATABASE: exchange
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
MYSQL_ROOT_PASSWORD: some_pass
|
||||
DB_HOST: mysql
|
||||
DB_USERNAME: root
|
||||
DB_USERNAME: francesco
|
||||
|
||||
stages:
|
||||
- test
|
||||
|
||||
Reference in New Issue
Block a user