From 083645e7a9c9a452c01ddcee5a08e56ede6c115d Mon Sep 17 00:00:00 2001
From: Sara MAHEO <E21A493J@univ-nantes.fr>
Date: Wed, 26 Jan 2022 15:43:49 +0100
Subject: [PATCH] test-gitlab-ci

---
 .gitlab-ci.yml     | 26 ++++++++++++++++++++++++++
 .idea/compiler.xml |  1 +
 2 files changed, 27 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..149088a
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,26 @@
+.verify: &verify
+  stage: test
+  script:
+    - 'mvn $MAVEN_CLI_OPTS verify'
+  except:
+    variables:
+      - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
+
+# Verify merge requests using JDK8
+verify:jdk8:
+  <<: *verify
+
+# To deploy packages from CI, create a ci_settings.xml file
+# For deploying packages to GitLab's Maven Repository: See https://docs.gitlab.com/ee/user/packages/maven_repository/index.html#create-maven-packages-with-gitlab-cicd for more details.
+# Please note: The GitLab Maven Repository is currently only available in GitLab Premium / Ultimate.
+# For `master` branch run `mvn deploy` automatically.
+deploy:jdk8:
+  stage: deploy
+  script:
+    - if [ ! -f ci_settings.xml ];
+      then echo "CI settings missing\! If deploying to GitLab Maven Repository, please see https://docs.gitlab.com/ee/user/packages/maven_repository/index.html#create-maven-packages-with-gitlab-cicd for instructions.";
+      fi
+    - 'mvn $MAVEN_CLI_OPTS deploy -s ci_settings.xml'
+  only:
+    variables:
+      - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 71a1f0e..fe4e5e4 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -7,6 +7,7 @@
         <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
         <outputRelativeToContentRoot value="true" />
         <module name="designpatternproject" />
+        <module name="DesignPatternProject" />
         <module name="Design Pattern Project" />
       </profile>
     </annotationProcessing>
-- 
GitLab