diff --git a/gitlab-ci.yml b/gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..2fc0baa3e52608bba88a1fb20a439d6e9c276c08 --- /dev/null +++ b/gitlab-ci.yml @@ -0,0 +1,32 @@ +image: java:8-jdk + +stages: + - build + - test + - deploy + +cache: + paths: + - .gradle/wrapper + - .gradle/caches + +build: + stage: build + script: + - ./gradlew assemble + artifacts: + paths: + - build/libs/*.jar + expire_in: 1 week + only: + - master + +test: + stage: test + script: + - ./gradlew check + +deploy: + stage: deploy + script: + - ./deploy \ No newline at end of file