mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 18:26:15 +01:00
14 lines
388 B
Bash
Executable File
14 lines
388 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if ! command -v nodemon &> /dev/null
|
|
then
|
|
echo "Please install nodemon (npm install -g nodemon) to automatically run tests."
|
|
exit
|
|
fi
|
|
|
|
export REDIS_URL='redis:///'
|
|
export TEST=1
|
|
psql posthog -c "drop database if exists test_posthog"
|
|
nodemon -w ./posthog -w ./ee --ext py --exec "OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES pytest --reuse-db -s $*; mypy posthog ee"
|