forked from pengutronix/flamingo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (33 loc) · 778 Bytes
/
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
PYTHON=python3.5
PYTHON_VENV=env
$(PYTHON_VENV)/.created: REQUIREMENTS.dev.txt
rm -rf $(PYTHON_VENV) && \
$(PYTHON) -m venv $(PYTHON_VENV) && \
. $(PYTHON_VENV)/bin/activate && \
pip install -r ./REQUIREMENTS.dev.txt && \
date > $(PYTHON_VENV)/.created
env: $(PYTHON_VENV)/.created
clean:
rm -rf $(PYTHON_VENV)
test: env
. $(PYTHON_VENV)/bin/activate && \
tox
ci-test: env
. $(PYTHON_VENV)/bin/activate && \
JENKINS_URL=1 tox
edit: env
. $(PYTHON_VENV)/bin/activate && \
$$EDITOR
shell: env
. $(PYTHON_VENV)/bin/activate && \
ipython
freeze: env
. $(PYTHON_VENV)/bin/activate && \
pip freeze
test-site: env
. $(PYTHON_VENV)/bin/activate && \
rm -rf test-site && \
flamingo init test-site debug=True
server: test-site
cd test-site && \
make server