mysql for ci
This commit is contained in:
parent
ac06df11e3
commit
aff3b6935e
@ -1,5 +1,13 @@
|
|||||||
image: java:8-jdk
|
image: java:8-jdk
|
||||||
image: mysql:mysql-server
|
|
||||||
|
services:
|
||||||
|
- mysql:latest
|
||||||
|
|
||||||
|
variables:
|
||||||
|
# Configure mysql environment variables (https://hub.docker.com/_/mysql/)
|
||||||
|
MYSQL_DATABASE: "aitrainer"
|
||||||
|
MYSQL_ROOT_PASSWORD: "andio2009"
|
||||||
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
@ -30,6 +38,11 @@ build:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
|
Host: mysql
|
||||||
|
User: aitrainer
|
||||||
|
Password: andio2009
|
||||||
|
Database: aitrainer
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./gradlew check -Pargs='spring.profiles.active=deploy'
|
- ./gradlew check -Pargs='spring.profiles.active=deploy'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user