Commit faaf5d14 authored by Trình Nguyễn's avatar Trình Nguyễn

Add .gitlab-ci.yml

parent 4f1eec7b
Pipeline #48969 failed
stages:
- test
variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
SELENIUM_REMOTE_URL: "http://selenium:4444"
HEADLESS: "true"
cache:
key: "${CI_COMMIT_REF_SLUG}"
paths:
- .m2/repository
daily_selenium_regression:
stage: test
image: maven:3.9-eclipse-temurin-17
services:
- name: selenium/standalone-chrome
alias: selenium
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
before_script:
- java -version
- mvn -version
script:
- >
mvn clean test
-Dselenium.remote.url=$SELENIUM_REMOTE_URL
-Dheadless=$HEADLESS
artifacts:
when: always
paths:
- target/surefire-reports/
- target/failsafe-reports/
- screenshots/
- logs/
reports:
junit:
- target/surefire-reports/TEST-*.xml
- target/failsafe-reports/TEST-*.xml
expire_in: 7 days
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment