Commit aeb471ef authored by Nikos Psaromanolakis's avatar Nikos Psaromanolakis
Browse files

Edit .gitlab-ci.yml

parent 27f5ffcb
Loading
Loading
Loading
Loading
Loading
+25 −2
Original line number Diff line number Diff line
@@ -603,15 +603,38 @@ nightly_workflows_job:
  stage: nightly_workflows
  image: labs.etsi.org:5050/osl/hypo/code/org.etsi.osl.hypo.ops/cicd/integration.tests/maven:3.9-eclipse-temurin-17
  before_script:
    - apt-get update
    - apt-get install -y wget gnupg xvfb git

    - wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub |
      gpg --dearmor -o /usr/share/keyrings/google-chrome.gpg
    - echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" >
      /etc/apt/sources.list.d/google-chrome.list

    - apt-get update
    - apt-get install -y google-chrome-stable
    # Verify Chrome
    - which google-chrome
    - google-chrome --version

    # Start the virtual display
    - Xvfb :99 -screen 0 1024x768x24 > /tmp/xvfb.log 2>&1 &
    - sleep 2
    - export DISPLAY=:99

    # clone the integration tests repo
    - git clone --depth 1 --branch develop "https://oauth2:$GROUP_ACCESS_TOKEN@$INTEGRATION_REPO"
    - cd integration.tests

    - mvn -version
    - mvn -q validate
    - mvn -q test-compile
    - mvn -q test "-Dkarate.options=--dryrun"
  script:
  - | 
      mvn -B -q test \
        "-Dkarate.env=$KARATE_ENV_INSTALLER" \
        "-Dkarate.options=--tags @portal-login-test" &&
      mvn -B -q test \
        "-Dkarate.env=$KARATE_ENV_INSTALLER" \
        "-Dkarate.options=--tags @smoke-e2e-workflow-private" &&