diff --git a/jobs/templates/swh-cypress.groovy b/jobs/templates/swh-cypress.groovy --- a/jobs/templates/swh-cypress.groovy +++ b/jobs/templates/swh-cypress.groovy @@ -53,6 +53,7 @@ stage('Run cypress tests') {{ steps {{ sh '''#!/bin/bash + set -e export PYTHONPATH=$PWD python3 swh/web/manage.py migrate --settings=swh.web.settings.tests python3 swh/web/manage.py createcachetable --settings=swh.web.settings.tests @@ -61,6 +62,7 @@ wait-for-it localhost:5004 yarn run cypress run yarn run mochawesome + yarn run nyc-report ''' }} }} diff --git a/jobs/templates/swh-cypress.yaml b/jobs/templates/swh-cypress.yaml --- a/jobs/templates/swh-cypress.yaml +++ b/jobs/templates/swh-cypress.yaml @@ -61,10 +61,7 @@ - shell: | #!/bin/bash set -e - python3 -m venv ~/swh-web-env - source ~/swh-web-env/bin/activate - pip3 install wheel - pip3 install -e .[testing] + python3 -m pip install --user -e .[testing] yarn install && yarn build-test && yarn run cypress install export PYTHONPATH=$PWD python3 swh/web/manage.py migrate --settings=swh.web.settings.tests @@ -74,6 +71,7 @@ wait-for-it localhost:5004 yarn run cypress run yarn run mochawesome + yarn run nyc-report publishers: - phabricator: