添加CI测试

This commit is contained in:
小海
2019-11-29 23:22:20 +08:00
parent a77dc695f6
commit a5811364c7

21
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,21 @@
image: maven:3.3.9-jdk-8
cache:
paths:
- .m2/repository
stages:
- test
- build
test:
stage: test
script:
- cp "$APP_TEST" ./src/main/resources/application-test.properties
- mvn test
build:
stage: build
script:
- cp "$APP_PROD" ./src/main/resources/application-prod.properties
- mvn package -DskipTests