Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/swh-cypress.groovy
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | stage('Setup environment') {{ | ||||
}} | }} | ||||
}} | }} | ||||
stage('Run cypress tests') {{ | stage('Run cypress tests') {{ | ||||
steps {{ | steps {{ | ||||
sh '''#!/bin/bash | sh '''#!/bin/bash | ||||
source ~/swh-web-env/bin/activate | source ~/swh-web-env/bin/activate | ||||
export PYTHONPATH=$PWD | export PYTHONPATH=$PWD | ||||
python3 swh/web/manage.py migrate | python3 swh/web/manage.py migrate --settings=swh.web.settings.tests | ||||
python3 swh/web/manage.py createcachetable | python3 swh/web/manage.py createcachetable --settings=swh.web.settings.tests | ||||
cat swh/web/tests/create_test_admin.py | python3 swh/web/manage.py shell --settings=swh.web.settings.tests | |||||
python3 swh/web/manage.py runserver --nostatic --settings=swh.web.settings.tests & | python3 swh/web/manage.py runserver --nostatic --settings=swh.web.settings.tests & | ||||
wait-for-it localhost:5004 | wait-for-it localhost:5004 | ||||
yarn run cypress run | yarn run cypress run | ||||
yarn run mochawesome | yarn run mochawesome | ||||
''' | ''' | ||||
}} | }} | ||||
}} | }} | ||||
Show All 33 Lines | always {{ | ||||
reportDir: 'cypress/coverage/lcov-report', | reportDir: 'cypress/coverage/lcov-report', | ||||
reportFiles: 'index.html', | reportFiles: 'index.html', | ||||
reportName: "Istanbul Code Coverage" | reportName: "Istanbul Code Coverage" | ||||
]) | ]) | ||||
}} | }} | ||||
}} | }} | ||||
}} | }} | ||||
No newline at end of file | No newline at end of file |