Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7147870
D1819.id6124.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
D1819.id6124.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
@@ -47,8 +47,9 @@
sh '''#!/bin/bash
source ~/swh-web-env/bin/activate
export PYTHONPATH=$PWD
- python3 swh/web/manage.py migrate
- python3 swh/web/manage.py createcachetable
+ python3 swh/web/manage.py migrate --settings=swh.web.settings.tests
+ 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 &
wait-for-it localhost:5004
yarn run cypress run
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
@@ -64,8 +64,9 @@
pip3 install -e .[testing]
yarn install && yarn build-test && yarn run cypress install
export PYTHONPATH=$PWD
- python3 swh/web/manage.py migrate
- python3 swh/web/manage.py createcachetable
+ python3 swh/web/manage.py migrate --settings=swh.web.settings.tests
+ 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 &
wait-for-it localhost:5004
yarn run cypress run
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 23, 2:26 AM (19 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3220286
Attached To
D1819: Jenkins: Automatically create swh-web admin user for cypress tests
Event Timeline
Log In to Comment