-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
51 lines (38 loc) · 1.31 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
SHELL = /usr/bin/env bash -o pipefail
default: help
.PHONY: help
help:
# Usage:
@sed -n '/^\([a-z][^:]*\).*/s// make \1/p' $(MAKEFILE_LIST)
.PHONY: web-components/install
web-components/install:
npm install --prefix web-components && pushd web-components && npx playwright install-deps chromium && npx playwright install chromium && popd
.PHONY: web-components/build
web-components/build:
npm run build --prefix web-components
.PHONY: web-components/watch
web-components/watch:
npm run build:watch --prefix web-components
.PHONY: web-components/test
web-components/test:
npm run test --prefix web-components
.PHONY: negotiator/run
negotiator/run:
source venv/bin/activate && python -m negotiator;
.PHONY: fake-auth/run
fake-auth/run:
source venv/bin/activate && python fake_auth_server.py;
.PHONY: migrate
migrate:
source venv/bin/activate && alembic upgrade head
.PHONY: migrate-test
migrate-test:
source venv/bin/activate && DATABASE_URL='postgresql://localhost:5432/negotiator_test?user=negotiator&password=negotiator' alembic upgrade head
.PHONY: negotiator/type-checks
negotiator/type-checks:
source venv/bin/activate && mypy negotiator tests;
.PHONY: negotiator/test
negotiator/test: negotiator/type-checks
source venv/bin/activate && python -m unittest;
.PHONY: test
test: negotiator/test web-components/test