Newer
Older
# Job to run tests on Merge Requests and on Schedule
test_job:
stage: test
before_script:
# Export the contents of masked file variable containing config properties to src/main/resources/config.properties after applying a couple of translations
- cat "$CONFIG_FILE_VAR" | sed -e 's/-LF-/\n/g' | sed -e 's/-WS-/ /g' > ./src/main/resources/config.properties
script:
# Run the tests in headed mode using the specified Cucumber runner and tags
- xvfb-run mvn clean test -Dtest=UiSimplOpenRunner -Dcucumber.filter.tags="@wizard"
artifacts:
paths:
- ./target/*
expire_in: 60 mins
tags:
- pso
allow_failure: false
rules:
- if: ($CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "schedule")