From a5811364c71a26c244a3f6b894440bdf47912b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=B5=B7?= Date: Fri, 29 Nov 2019 23:22:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0CI=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..afae0bf --- /dev/null +++ b/.gitlab-ci.yml @@ -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