-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (26 loc) · 1.18 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
.PHONY: uninstall install install_test_requirements test_docker_in_docker
install:
@python setup.py install --record .installed_files \
develop:
@python setup.py develop --record .installed_files \
uninstall:
@cat .installed_files | xargs rm -v
@rm .installed_files
install_test_requirements:
pip install -qr requirements.txt
pip install -qr test-requirements.txt
test: clean
pytest tests/
black:
black -Sl100 devenv/ tests/
test_docker_in_docker: test_alpine test_debian
test_alpine: clean
docker run -v /var/run/docker.sock:/var/run/docker.sock -v `pwd`:/app/ -w /app/ python:alpine3.7 /app/tests/dind/dind-alpine-test.sh
docker run -v /var/run/docker.sock:/var/run/docker.sock -v `pwd`:/app/ -w /app/ python:alpine3.6 /app/tests/dind/dind-alpine-test.sh
test_debian: clean
docker run -v /var/run/docker.sock:/var/run/docker.sock -v `pwd`:/app/ -w /app/ python:2.7 /app/tests/dind/dind-debian-test.sh
docker run -v /var/run/docker.sock:/var/run/docker.sock -v `pwd`:/app/ -w /app/ python:3.7 /app/tests/dind/dind-debian-test.sh
clean:
@find devenv -type f | grep \.pyc | xargs rm
@find tests -type f | grep \.pyc | xargs rm
@find tests -type d | grep \__pycache__ | xargs rm -rf