Skip to content
Snippets Groups Projects
Verified Commit 1919392b authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

feat: run codeception on tests/* branches by default

parent d6d4433b
No related branches found
No related tags found
No related merge requests found
.template: &job-codeception-test .codeception-base:
tags: tags:
- codeception - codeception
- $TESTS_TAG - $TESTS_TAG
...@@ -34,11 +34,11 @@ ...@@ -34,11 +34,11 @@
optional: true optional: true
- job: prepare npm assets - job: prepare npm assets
optional: true optional: true
except: rules:
variables: - if: $DISABLE_CODECEPTION
- $DISABLE_CODECEPTION when: never
- $IS_LIBRARY - if: $IS_LIBRARY || $IS_NPM_LIBRARY
- $IS_NPM_LIBRARY when: never
allow_failure: false allow_failure: false
interruptible: true interruptible: true
before_script: before_script:
...@@ -82,29 +82,29 @@ ...@@ -82,29 +82,29 @@
- 'if [[ ${REPORTPORTAL_AUTHORIZATION} && ${REPORTPORTAL_PROJECT} ]]; then curl -X POST "http://195.201.225.204:8080/api/v1/${REPORTPORTAL_PROJECT}/launch/import" -H "accept: */*" -H "Content-Type: multipart/form-data" -H "${REPORTPORTAL_AUTHORIZATION}" -F "file=@tests/codeception/tests/_output/report.xml;type=text/xml;filename=${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}-codeception.xml"; fi' - 'if [[ ${REPORTPORTAL_AUTHORIZATION} && ${REPORTPORTAL_PROJECT} ]]; then curl -X POST "http://195.201.225.204:8080/api/v1/${REPORTPORTAL_PROJECT}/launch/import" -H "accept: */*" -H "Content-Type: multipart/form-data" -H "${REPORTPORTAL_AUTHORIZATION}" -F "file=@tests/codeception/tests/_output/report.xml;type=text/xml;filename=${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}-codeception.xml"; fi'
codeception test: codeception test:
<<: *job-codeception-test extends: .codeception-base
only: rules:
refs: - !reference [.codeception-base, rules]
- master - if: $CI_COMMIT_TAG
- main - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- devel - if: $CI_COMMIT_BRANCH == "devel"
- tags - if: $CI_BRANCH_NAME =~ /^tests.*/
codeception test manual: codeception test manual:
<<: *job-codeception-test extends: .codeception-base
when: manual when: manual
allow_failure: true allow_failure: true
except: rules:
refs: - !reference [.codeception-base, rules]
- master - if: $CI_COMMIT_TAG
- main when: never
- devel - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- tags when: never
variables: - if: $CI_COMMIT_BRANCH == "devel"
- $DISABLE_CODECEPTION when: never
codeception test recorded manual: codeception test recorded manual:
<<: *job-codeception-test extends: .codeception-base
when: manual when: manual
allow_failure: true allow_failure: true
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment