-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
Makefile
52 lines (36 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
install:
poetry install
install_poetry:
curl -sSL https://install.python-poetry.org | python -
tests: install tests_only tests_pre_commit
tests_pre_commit:
poetry run pre-commit run --all-files
tests_only:
poetry run pytest --cov=./ --cov-report=xml --cov-report=html -vv
run_infra:
cd infra &&\
docker compose down &&\
docker compose up -d
clean_infra:
cd infra &&\
docker compose down --remove-orphans &&\
docker system prune -a --volumes -f
stop_infra:
cd infra &&\
docker compose down --remove-orphans
sync_infra:
python scripts/gh-download.py --repo=supabase/gotrue-js --branch=master --folder=infra
run_tests: run_infra sleep tests
build_sync:
poetry run unasync supabase_auth tests
build_run_tests: build_sync run_tests
echo "Done"
sleep:
sleep 20
rename_project: rename_package_dir rename_package
rename_package_dir:
mv supabase_auth gotrue
rename_package:
sed -i 's/supabase_auth/gotrue/g' pyproject.toml tests/_async/clients.py tests/_sync/clients.py tests/_async/test_gotrue_admin_api.py tests/_sync/test_gotrue_admin_api.py tests/_async/test_utils.py tests/_sync/test_utils.py tests/_async/utils.py tests/_sync/utils.py README.md
build_package:
poetry build