Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/swh-cypress.groovy
Show All 40 Lines | stage('Checkout') {{ | ||||
}} | }} | ||||
}} | }} | ||||
stage('Setup environment') {{ | stage('Setup environment') {{ | ||||
steps {{ | steps {{ | ||||
sh '''#!/bin/bash | sh '''#!/bin/bash | ||||
python3 -m venv ~/swh-web-env | python3 -m venv ~/swh-web-env | ||||
source ~/swh-web-env/bin/activate | source ~/swh-web-env/bin/activate | ||||
pip3 install --upgrade pip | |||||
pip3 install wheel | pip3 install wheel | ||||
pip3 install -e .[testing] | pip3 install -e .[testing] | ||||
yarn install && yarn build-test && yarn run cypress install | yarn install && yarn build-test && yarn run cypress install | ||||
''' | ''' | ||||
}} | }} | ||||
}} | }} | ||||
stage('Run cypress tests') {{ | stage('Run cypress tests') {{ | ||||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 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 |