-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
47 lines (30 loc) · 1.02 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
SHELL := /bin/bash
TOX_INI = -c ./forthic-py/tox.ini
.PHONY: install-forthic test credentials-server
# ----- Example server --------------------------------------------------------
example-server: install-forthic
source myenv/bin/activate && cd server && FLASK_APP=run.py FLASK_DEBUG=true flask run --port=8000
myenv:
python3 -m venv myenv
install-forthic: myenv
source myenv/bin/activate && python -m pip install -U pip && cd ./forthic-py && pip install . && pip install Flask
delete-secrets:
rm server/.key
rm server/.secrets
credentials-server:
FLASK_APP=apps/setup/run.py flask run --port=8000
build-forthic-react:
cd forthic-react/v1 && make build
# ----- Tests ------------------------------------------------------------------
test-py:
cd forthic-py && make test
test-js:
cd forthic-js && make test
test-react:
cd forthic-react/v1 && make test
test: test-py test-react
test-rs:
cd experimental/forthic-rs && make test
test-zig:
cd experimental/forthic-zig && make test
test-experimental: test-rs test-zig