forked from socketplane/socketplane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (22 loc) · 1.33 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
.PHONY: build coverage test test-all test-local test-all-local
build:
docker build -t socketplane/socketplane .
coverage:
sh tools/combine-coverage.sh
goveralls -coverprofile=socketplane.coverprofile -service=$(CI_SERVICE) -repotoken=$(COVERALLS_TOKEN)
test:
docker-compose up -d
docker run --cap-add=NET_ADMIN --cap-add SYS_ADMIN --net=container:socketplane_ovs_1 --rm -v $(shell pwd):/go/src/github.com/socketplane/socketplane -w /go/src/github.com/socketplane/socketplane davetucker/golang-ci:1.3 make test-local
docker-compose stop
test-all:
docker-compose up -d
docker run --cap-add=NET_ADMIN --cap-add SYS_ADMIN --net=container:socketplane_ovs_1 --rm -v $(shell pwd):/go/src/github.com/socketplane/socketplane -w /go/src/github.com/socketplane/socketplane davetucker/golang-ci:1.3 make test-all-local
docker-compose stop
test-local:
go test -covermode=count -test.short -coverprofile=daemon.cover.out -coverpkg=./... ./daemon
go test -covermode=count -test.short -coverprofile=datastore.cover.out -coverpkg=./... ./ipam
go test -covermode=count -test.short -coverprofile=socketplane.cover.out
test-all-local:
go test -covermode=count -coverprofile=daemon.cover.out -coverpkg=./... ./daemon
go test -covermode=count -coverprofile=datastore.cover.out -coverpkg=./... ./ipam
go test -covermode=count -coverprofile=socketplane.cover.out