mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 09:14:46 +01:00
bbb4025ab1
* Fix e2e tests * Run as 'production' to better mimick CI * try no self capture * Correct event/property definitions * fix * fix system status * Try caching cypress separately * Cache node modules * cache pip better * fix tests * dont run if not cache * test * Cache cypress * Fix event definitions * Fix and speed up * try fixing * fix * fix * faster install * try self capture 1 * fix multiple * fix * fix * fix * more speeding up * Fix tests * try not installing deps * fix test global * possibly quicker * correct * Fix
16 lines
815 B
Bash
Executable File
16 lines
815 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
dropdb --if-exists posthog_e2e_test
|
|
createdb posthog_e2e_test
|
|
DEBUG=1 DATABASE_URL=postgres://localhost:5432/posthog_e2e_test python manage.py migrate &&
|
|
DEBUG=1 DATABASE_URL=postgres://localhost:5432/posthog_e2e_test python manage.py setup_dev &
|
|
yarn add cypress@6.7.0 cypress-terminal-report@2.1.0 @cypress/react@4.16.4 @cypress/webpack-preprocessor@5.7.0
|
|
|
|
# Only start webpack if not already running
|
|
nc -vz 127.0.0.1 8234 2> /dev/null || ./bin/start-frontend &
|
|
|
|
CYPRESS_BASE_URL=http://localhost:8080 npx cypress open --config-file cypress.e2e.json &
|
|
OPT_OUT_CAPTURE=1 SECURE_COOKIES=0 DEBUG=0 TEST=1 E2E_TESTING=1 DATABASE_URL=postgres://localhost:5432/posthog_e2e_test python manage.py runserver 8080
|
|
yarn remove cypress cypress-terminal-report @cypress/react @cypress/webpack-preprocessor
|