reflex/integration/init-test/in_docker_test_script.sh
2023-11-03 13:37:01 -07:00

15 lines
419 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
echo "Preparing test project dir"
mkdir hello
python3 -m venv ~/hello/venv
source ~/hello/venv/bin/activate
echo "Installing reflex from local repo code"
cd /reflex-repo
poetry install
echo "Running reflex init in test project dir"
export TELEMETRY_ENABLED=false
poetry run /bin/bash -c "cd ~/hello && reflex init --template blank && rm -rf ~/.reflex .web && reflex export --backend-only"