diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..16330128272867173549b95b4601e174a89bb26d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +stages: + - build + - test + - package + +variables: + MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository" + +cache: + key: maven + paths: + - .m2/repository/ + +construire: + stage: build + script: + - mvn clean package + artifacts: + paths: + - target/ + expire_in: 1 hour + +tester: + stage: test + script: + - mvn test + +empaqueter: + stage: package + script: + - mvn package + artifacts: + paths: + - target/*.jar \ No newline at end of file