diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..eb75959 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +image: maven:latest + +variables: + MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true" +cache: + paths: + - .m2/repository + +stages: + - build + - test + - package + +build: + stage: build + script: + - mvn $MAVEN_CLI_OPTS compile + +test: + stage: test + script: + - mvn $MAVEN_CLI_OPTS test + +package: + stage: package + script: + -mvn $MAVEN_CLI_OPTS package + artifacts: + paths: + - target/*jar-with-dependencies.jar +