From b883fc1ca1646b90fa91c3d20cc7e90fffedee26 Mon Sep 17 00:00:00 2001 From: Charitha Goonetilleke Date: Thu, 20 Sep 2018 06:44:43 +0000 Subject: [PATCH] Add CI --- .gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000000..0fd7bd56b16 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +image: maven:latest + +variables: + MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode" + MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" + +cache: + paths: + - .m2/repository/ + - target/ + +build: + stage: build + script: + - mvn $MAVEN_CLI_OPTS compile + +test: + stage: test + script: + - mvn $MAVEN_CLI_OPTS test \ No newline at end of file