Skip to content
Snippets Groups Projects
Commit db3b255d authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix Behat tests

parent 4a596db7
Branches
No related tags found
No related merge requests found
......@@ -12,9 +12,12 @@
.test_lakedrops_theme: &test_lakedrops_theme
before_script:
- DIR=$(dc exec -u root php pwd)
- dc cp ${THEME_CSS_PATH} php:${DIR}/${THEME_CSS_PATH}
- if [[ "${THEME_BUILD}" == "yes" && -d ${THEME_CSS_PATH} ]]; then dc cp ${THEME_CSS_PATH} php:${DIR}/${THEME_CSS_PATH}; fi
after_script:
- dc exec -u root php rm -rf ${THEME_CSS_PATH}
- if [[ "${THEME_BUILD}" == "yes" && -d ${THEME_CSS_PATH} ]]; then dc exec -u root php rm -rf ${THEME_CSS_PATH}; fi
dependencies:
- 'Build Site'
- 'Build Theme'
Test Code Style:
<<: *test_lakedrops_default
......@@ -65,16 +68,14 @@ Test Behat:
- job: Update DB
optional: true
script:
- if [[ -f behat.xml ]]; then rm behat.xml; fi
- if [[ -f tests/behat/default.xml ]]; then rm tests/behat/default.xml; fi
- ahoy behat update
- ahoy behat exec -- --format junit --out /tmp
after_script:
- docker cp ${COMPOSE_PROJECT_NAME}-php-1:/tmp/default.xml behat.xml
- ahoy behat exec -- --format junit --out tests/behat
artifacts:
name: behat
when: always
paths:
- behat.xml
- tests/behat/default.xml
rules:
- if: '$DISABLE_CI_TEST_BEHAT != "1"'
......@@ -101,9 +102,6 @@ Test Backstop:
when: always
paths:
- tests/backstop/backstop_data
dependencies:
- 'Build Site'
- 'Build Theme'
rules:
- if: '$DISABLE_CI_TEST_BACKSTOP != "1"'
......@@ -133,8 +131,5 @@ Test Cypress E2E:
paths:
- tests/cypress/screenshots
- tests/cypress/videos
dependencies:
- 'Build Site'
- 'Build Theme'
rules:
- if: '$DISABLE_CI_TEST_CYPRESSE2E != "1"'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment