forked from Venkatesh123-dev/veems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (55 loc) · 1.34 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.ONESHELL:
.PHONY: lint
lint:
flake8
.ONESHELL:
.PHONY: test
test: install lint
pytest -n auto -k 'TestTranscode' -vvv
pytest -n auto -k 'not TestTranscode' -vvv
.ONESHELL:
.PHONY: test-js
test-js:
cd ./react-components
npm run lint
npm run test
.ONESHELL:
.PHONY: system_install
system_install:
apt update && apt install -y ffmpeg
.ONESHELL:
.PHONY: test
install:
pip install -r requirements-dev.txt
.ONESHELL:
make-buckets-remote:
aws --endpoint-url=http://localhost:4566 s3 mb s3://${BUCKET_STATIC} || true
aws --endpoint-url=http://localhost:4566 s3 mb s3://${BUCKET_MEDIA} || true
.ONESHELL:
start-deps-remote:
docker-compose up -d postgres rabbit localstack
.ONESHELL:
start-deps:
docker-compose up -d postgres rabbit localstack
aws --endpoint-url=http://localhost:4566 s3 mb s3://${BUCKET_STATIC} || true
aws --endpoint-url=http://localhost:4566 s3 mb s3://${BUCKET_MEDIA} || true
.ONESHELL:
.PHONY: reset
reset: install make-buckets-remote
python manage.py flush --noinput
python manage.py import_seed_data
.ONESHELL:
.PHONY: run
run:
docker-compose build app_local
docker-compose run --service-port app_local
.ONESHELL:
.PHONY: run
run_seed:
docker-compose build app_local
docker-compose run --service-port app_local make reset
.ONESHELL:
.PHONY: docker-test
docker-test:
docker-compose build app_test
docker-compose run app_test