diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1eb099b38ac3e2685bc216e2fe31131ba58cb13c..f37b35e025d25ec37aa681f7b74af3efaf07b960 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -70,19 +70,19 @@ cache: # For merge requests do not `deploy` but only run `verify`. # See https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html -.verify: - stage: test - script: - - cd org.etsi.mts.tdl.parent - - 'mvn $MAVEN_CLI_OPTS verify' - except: - variables: - - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH +# .verify: + # stage: test + # script: + # - cd org.etsi.mts.tdl.parent + # - 'mvn $MAVEN_CLI_OPTS verify' + # except: + # variables: + # - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Verify merge requests using JDK8 -verify:jdk11: - extends: - - .verify +# verify:jdk11: + # extends: + # - .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. @@ -120,26 +120,26 @@ build-job: # This job runs in the build stage, which runs first. - $SITE_ARCHIVE - $SITE_PATH -unit-test-job: # This job runs in the test stage. - stage: test # It only starts when the job in the build stage completes successfully. - script: - - echo "Running unit tests... This will take about 6 seconds." - - sleep 6 - - echo "Code coverage is 0%" - -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). - script: - - echo "Linting code... This will take about 1 seconds." - - sleep 1 - - echo "No lint issues found." - -deploy-job: # This job runs in the deploy stage. - stage: deploy # It only runs when *both* jobs in the test stage complete successfully. - environment: production - script: - - echo "Deploying application..." - - echo "Application successfully deployed." +# unit-test-job: # This job runs in the test stage. + # stage: test # It only starts when the job in the build stage completes successfully. + # script: + # - echo "Running unit tests... This will take about 6 seconds." + # - sleep 6 + # - echo "Code coverage is 0%" + +# 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). + # script: + # - echo "Linting code... This will take about 1 seconds." + # - sleep 1 + # - echo "No lint issues found." + +# deploy-job: # This job runs in the deploy stage. + # stage: deploy # It only runs when *both* jobs in the test stage complete successfully. + # environment: production + # script: + # - echo "Deploying application..." + # - echo "Application successfully deployed." # Adapted from OpenAPI2TDL converter