1
- .PHONY : all build test integration-test unit-test build-py3 unit-test-py3 integration-test-py3
2
-
1
+ .PHONY : all
3
2
all : test
4
3
4
+ .PHONY : clean
5
5
clean :
6
6
-docker rm -vf dpy-dind
7
7
find -name " __pycache__" | xargs rm -rf
8
8
9
+ .PHONY : build
9
10
build :
10
11
docker build -t docker-py .
11
12
13
+ .PHONY : build-py3
12
14
build-py3 :
13
15
docker build -t docker-py3 -f Dockerfile-py3 .
14
16
17
+ .PHONY : build-docs
15
18
build-docs :
16
19
docker build -t docker-py-docs -f Dockerfile-docs .
17
20
21
+ .PHONY : build-dind-certs
18
22
build-dind-certs :
19
23
docker build -t dpy-dind-certs -f tests/Dockerfile-dind-certs .
20
24
25
+ .PHONY : test
21
26
test : flake8 unit-test unit-test-py3 integration-dind integration-dind-ssl
22
27
28
+ .PHONY : unit-test
23
29
unit-test : build
24
30
docker run docker-py py.test tests/unit
25
31
32
+ .PHONY : unit-test-py3
26
33
unit-test-py3 : build-py3
27
34
docker run docker-py3 py.test tests/unit
28
35
36
+ .PHONY : integration-test
29
37
integration-test : build
30
38
docker run -v /var/run/docker.sock:/var/run/docker.sock docker-py py.test tests/integration
31
39
40
+ .PHONY : integration-test-py3
32
41
integration-test-py3 : build-py3
33
42
docker run -v /var/run/docker.sock:/var/run/docker.sock docker-py3 py.test tests/integration
34
43
44
+ .PHONY : integration-dind
35
45
integration-dind : build build-py3
36
46
docker rm -vf dpy-dind || :
37
47
docker run -d --name dpy-dind --privileged dockerswarm/dind:1.12.0 docker daemon\
@@ -42,6 +52,7 @@ integration-dind: build build-py3
42
52
py.test tests/integration
43
53
docker rm -vf dpy-dind
44
54
55
+ .PHONY : integration-dind-ssl
45
56
integration-dind-ssl : build-dind-certs build build-py3
46
57
docker run -d --name dpy-dind-certs dpy-dind-certs
47
58
docker run -d --env=" DOCKER_HOST=tcp://localhost:2375" --env=" DOCKER_TLS_VERIFY=1" \
@@ -57,8 +68,10 @@ integration-dind-ssl: build-dind-certs build build-py3
57
68
--link=dpy-dind-ssl:docker docker-py3 py.test tests/integration
58
69
docker rm -vf dpy-dind-ssl dpy-dind-certs
59
70
71
+ .PHONY : flake8
60
72
flake8 : build
61
73
docker run docker-py flake8 docker tests
62
74
75
+ .PHONY : docs
63
76
docs : build-docs
64
77
docker run -v ` pwd` /docs:/home/docker-py/docs/ -p 8000:8000 docker-py-docs mkdocs serve -a 0.0.0.0:8000
0 commit comments