# For merge requests do not `deploy` but only run `verify`.
# For merge requests do not `deploy` but only run `verify`.
# See https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
# See https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
.verify:
# .verify:
stage:test
# stage: test
script:
# script:
-cd org.etsi.mts.tdl.parent
# - cd org.etsi.mts.tdl.parent
-'mvn$MAVEN_CLI_OPTSverify'
# - 'mvn $MAVEN_CLI_OPTS verify'
except:
# except:
variables:
# variables:
-$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Verify merge requests using JDK8
# Verify merge requests using JDK8
verify:jdk11:
# verify:jdk11:
extends:
# extends:
-.verify
# - .verify
# To deploy packages from CI, create a `ci_settings.xml` file
# 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.
# 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.
...
@@ -120,26 +120,26 @@ build-job: # This job runs in the build stage, which runs first.
...
@@ -120,26 +120,26 @@ build-job: # This job runs in the build stage, which runs first.
-$SITE_ARCHIVE
-$SITE_ARCHIVE
-$SITE_PATH
-$SITE_PATH
unit-test-job:# This job runs in the test stage.
# unit-test-job: # This job runs in the test stage.
stage:test# It only starts when the job in the build stage completes successfully.
# stage: test # It only starts when the job in the build stage completes successfully.
script:
# script:
-echo "Running unit tests... This will take about 6 seconds."
# - echo "Running unit tests... This will take about 6 seconds."
-sleep 6
# - sleep 6
-echo "Code coverage is 0%"
# - echo "Code coverage is 0%"
lint-test-job:# This job also runs in the test stage.
# lint-test-job: # This job also runs in the test stage.
stage:test# It can run at the same time as unit-test-job (in parallel).
# stage: test # It can run at the same time as unit-test-job (in parallel).
script:
# script:
-echo "Linting code... This will take about 1 seconds."
# - echo "Linting code... This will take about 1 seconds."
-sleep 1
# - sleep 1
-echo "No lint issues found."
# - echo "No lint issues found."
deploy-job:# This job runs in the deploy stage.
# deploy-job: # This job runs in the deploy stage.
stage:deploy# It only runs when *both* jobs in the test stage complete successfully.
# stage: deploy # It only runs when *both* jobs in the test stage complete successfully.