forked from sprucedev/DockCI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (33 loc) · 1.58 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
collectstatic: htmldeps
mkdir -p dockci/static/lib/css
mkdir -p dockci/static/lib/fonts
mkdir -p dockci/static/lib/js
cp bower_components/bootstrap/dist/css/bootstrap.min.css dockci/static/lib/css
cp bower_components/bootstrap-material-design/dist/css/material.min.css dockci/static/lib/css
cp bower_components/bootstrap-material-design/dist/css/material-wfont.min.css dockci/static/lib/css
cp bower_components/bootstrap-material-design/dist/css/ripples.min.css dockci/static/lib/css
cp bower_components/bootstrap-material-design/dist/fonts/Material-Design-Icons.woff dockci/static/lib/fonts
cp bower_components/bootstrap-material-design/dist/fonts/Material-Design-Icons.ttf dockci/static/lib/fonts
cp bower_components/ansi_up/ansi_up.js dockci/static/lib/js
cp bower_components/bootstrap/js/tab.js dockci/static/lib/js
cp bower_components/bootstrap-material-design/dist/js/material.min.js dockci/static/lib/js
cp bower_components/bootstrap-material-design/dist/js/ripples.min.js dockci/static/lib/js
cp bower_components/jquery/dist/jquery.min.js dockci/static/lib/js
htmldeps:
npm install
node_modules/bower/bin/bower --allow-root install
pythondeps:
virtualenv -p $(shell which python3.4) python_env
python_env/bin/pip install -r requirements.txt
deps: htmldeps pythondeps collectstatic
styletest: # don't install deps
python_env/bin/pep8 dockci
python_env/bin/pylint --rcfile pylint.conf dockci
test: styletest
# Container commands
ci: test
run:
@python_env/bin/python3 /code/dockci_server --host 0.0.0.0
sh:
@sh
.PHONY: ci collectstatic htmldeps pythondeps deps run styletest test