Commit f3d74b39 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

Update .gitlab-ci.yml file

parent efbac617
Loading
Loading
Loading
Loading
Loading
+31 −31
Original line number Diff line number Diff line
@@ -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%"
# 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."
# 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."
# 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