create dummy user at before_Script

This commit is contained in:
Too
2018-06-22 15:07:36 +08:00
parent 0fa439c185
commit 518647ed08
+9 -2
View File
@@ -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