-
Notifications
You must be signed in to change notification settings - Fork 31
/
Makefile
66 lines (53 loc) · 1.45 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
.DEFAULT_GOAL := help
.PHONY: help # shows available commands
help:
@echo "\nAvailable commands:\n\n $(shell sed -n 's/^.PHONY:\(.*\)/ *\1\\n/p' Makefile)"
.PHONY: test
test:
coverage run setup.py test
.PHONY: test_all # runs tests using detox, combines coverage and reports it
test_all:
detox
make coverage
.PHONY: coverage # combines coverage and reports it
coverage:
coverage combine || true
coverage report
.PHONY: coverage-lcov
coverage-lcov:
coverage combine || true
coverage lcov -o coverage.info
.PHONY: lint
lint:
pre-commit run --all-files
.PHONY: install
install:
python setup.py install
.PHONY: develop
develop:
python setup.py develop
.PHONY: build_example
build_example:
docker-compose up --build -d
rm example/db.sqlite3* || true
docker-compose run --rm django migrate
docker-compose run --rm django createsuperuser \
--username admin \
--email [email protected]
.PHONY: example
example:
docker-compose start || make build_example
@echo "\n✨ Djedi-CMS example is running now ✨\n"
docker-compose logs -f --tail=5 django
.PHONY: clean
clean:
rm -rf .tox/ dist/ *.egg *.egg-info .coverage* .eggs
# docker-compose run --rm --entrypoint=make coffee coffee
.PHONY: coffee
coffee:
coffee --compile $(ARGS) djedi
# docker-compose run --rm --entrypoint=make less less
.PHONY: less
less:
cd djedi/static/djedi/themes/darth && lessc --verbose theme.less theme.css
cd djedi/static/djedi/themes/luke && lessc --verbose theme.less theme.css