Skip to content

Commit 5f0f085

Browse files
committed
Updated Makefile to help with release testing
1 parent 81f65e9 commit 5f0f085

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Makefile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all build test integration-test unit-test
1+
.PHONY: all build test integration-test unit-test build-py3 unit-test-py3 integration-test-py3
22

33
HOST_TMPDIR=test -n "$(TMPDIR)" && echo $(TMPDIR) || echo /tmp
44

@@ -7,10 +7,19 @@ all: test
77
build:
88
docker build -t docker-py .
99

10-
test: unit-test integration-test
10+
build-py3:
11+
docker build -t docker-py3 -f Dockerfile-py3 .
12+
13+
test: unit-test integration-test unit-test-py3 integration-test-py3
1114

1215
unit-test: build
1316
docker run docker-py python tests/test.py
1417

18+
unit-test-py3: build-py3
19+
docker run docker-py3 python tests/test.py
20+
1521
integration-test: build
1622
docker run -e NOT_ON_HOST=true -v `$(HOST_TMPDIR)`:/tmp -v /var/run/docker.sock:/var/run/docker.sock docker-py python tests/integration_test.py
23+
24+
integration-test-py3: build-py3
25+
docker run -e NOT_ON_HOST=true -v `$(HOST_TMPDIR)`:/tmp -v /var/run/docker.sock:/var/run/docker.sock docker-py3 python tests/integration_test.py

0 commit comments

Comments
 (0)