diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..00b83c425c6b41a41580a576942b29d39fa1f5be --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,39 @@ +stages: + - build + - quality + - deploy + +default: + image: maven:3.8.6-openjdk-18 + +cache: + paths: + - .cache/repository + # - dependances/ + +variables: + MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.cache/repository" + +build-backend: + stage: build + script: + - mvn clean compile + artifacts: + paths: + - target/ + expire_in: 1 hour + +test-backend: + stage: quality + script: + - mvn test + # dependencies: + # - build-backend + +package-backend: + stage: deploy + script: + - mvn package + artifacts: + paths: + - target/starter-1.0.0-SNAPSHOT-fat.jar