-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
33 lines (25 loc) · 846 Bytes
/
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
.PHONY: get-tools test lint unit
get-tools:
go get github.com/go-playground/overalls
go get github.com/mattn/goveralls
test: lint unit
lint:
go fmt ./...
go vet ./...
unit:
go test ./...
coverage:
overalls -project=github.com/privacylab/talek -covermode=count -debug
goveralls -coverprofile=overalls.coverprofile -service=travis-ci
ci: SHELL:=/bin/bash # HERE: this is setting the shell for 'ci' only
ci: lint
overalls -project=github.com/privacylab/talek -covermode=count -debug -- -tags travis
@if [[ "${TRAVIS_JOB_NUMBER}" =~ ".1" ]]; then\
echo "Uploading coverage to Coveralls.io"; \
goveralls -coverprofile=overalls.coverprofile -service=travis-ci; \
fi
docker-build:
docker build -t talek-base:latest ./
docker build -t talek-replica:latest ./cli/talekreplica/
docker-bash:
docker run -it talek-base:latest bash