Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9345476
D2497.id8876.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D2497.id8876.diff
View Options
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:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 3:22 PM (6 d, 8 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3218660
Attached To
D2497: jobs/templates: Update cypress jobs
Event Timeline
Log In to Comment