Issue #3403960 by alexpott, longwave: Store chromedriver log as an artifact
(cherry picked from commit 5d01141924
)
merge-requests/5604/head
parent
beedcb6bde
commit
d8f4305d06
|
@ -37,6 +37,7 @@ default:
|
||||||
paths:
|
paths:
|
||||||
- ./sites/default/files/simpletest/phpunit-*.xml
|
- ./sites/default/files/simpletest/phpunit-*.xml
|
||||||
- ./sites/simpletest/browser_output
|
- ./sites/simpletest/browser_output
|
||||||
|
- '*.log'
|
||||||
|
|
||||||
.default-job-settings: &default-job-settings
|
.default-job-settings: &default-job-settings
|
||||||
stage: 🗜️ Test
|
stage: 🗜️ Test
|
||||||
|
@ -80,8 +81,7 @@ variables:
|
||||||
entrypoint:
|
entrypoint:
|
||||||
- chromedriver
|
- chromedriver
|
||||||
- "--no-sandbox"
|
- "--no-sandbox"
|
||||||
- "--log-path=/tmp/chromedriver.log"
|
- "--log-path=/builds/chromedriver.log"
|
||||||
- "--verbose"
|
|
||||||
- "--whitelisted-ips="
|
- "--whitelisted-ips="
|
||||||
|
|
||||||
.run-tests: &run-tests
|
.run-tests: &run-tests
|
||||||
|
@ -150,6 +150,9 @@ variables:
|
||||||
services:
|
services:
|
||||||
- <<: *with-database
|
- <<: *with-database
|
||||||
- <<: *with-chrome
|
- <<: *with-chrome
|
||||||
|
after_script:
|
||||||
|
- sed -i "s#$CI_PROJECT_DIR/##" ./sites/default/files/simpletest/phpunit-*.xml || true
|
||||||
|
- cp /builds/chromedriver.log ./
|
||||||
|
|
||||||
'👷️️️ PHPUnit Build':
|
'👷️️️ PHPUnit Build':
|
||||||
<<: [ *with-composer, *run-tests, *default-job-settings ]
|
<<: [ *with-composer, *run-tests, *default-job-settings ]
|
||||||
|
@ -191,6 +194,8 @@ variables:
|
||||||
- echo "DRUPAL_NIGHTWATCH_OUTPUT='"../nightwatch_output"'" >> ./core/.env
|
- echo "DRUPAL_NIGHTWATCH_OUTPUT='"../nightwatch_output"'" >> ./core/.env
|
||||||
- chown -R www-data:www-data ./sites /var/www
|
- chown -R www-data:www-data ./sites /var/www
|
||||||
- sudo -u www-data yarn run --cwd=./core test:nightwatch --workers=4
|
- sudo -u www-data yarn run --cwd=./core test:nightwatch --workers=4
|
||||||
|
after_script:
|
||||||
|
- cp /builds/chromedriver.log ./
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
expire_in: 6 mos
|
expire_in: 6 mos
|
||||||
|
@ -198,6 +203,7 @@ variables:
|
||||||
junit: ./nightwatch_output/**/*.xml
|
junit: ./nightwatch_output/**/*.xml
|
||||||
paths:
|
paths:
|
||||||
- ./nightwatch_output
|
- ./nightwatch_output
|
||||||
|
- '*.log'
|
||||||
|
|
||||||
'🔁 Repeat Class Test':
|
'🔁 Repeat Class Test':
|
||||||
<<: [ *with-composer, *run-repeat-class-test, *default-job-settings ]
|
<<: [ *with-composer, *run-repeat-class-test, *default-job-settings ]
|
||||||
|
|
Loading…
Reference in New Issue