diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..149088ab55ad3d4112cf56c6db004f45dba5ac68 --- /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 71a1f0ed76245d2cf62c191cfc3a5f5311f4c0ac..fe4e5e4b210569f2d0963f9f1bf0478aff887941 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>