in_docker_test_script.sh 507 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env bash
  2. set -euxo pipefail
  3. export TELEMETRY_ENABLED=false
  4. function do_export () {
  5. template=$1
  6. mkdir ~/"$template"
  7. cd ~/"$template"
  8. rm -rf ~/.local/share/reflex ~/"$template"/.web
  9. reflex init --template "$template"
  10. reflex export
  11. }
  12. echo "Preparing test project dir"
  13. python3 -m venv ~/venv
  14. source ~/venv/bin/activate
  15. echo "Installing reflex from local repo code"
  16. pip install /reflex-repo
  17. echo "Running reflex init in test project dir"
  18. do_export blank
  19. do_export sidebar