-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
35 lines (30 loc) · 1 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
regenerate:
cd ptypes && make regenerate
cd protoc-gen-gopherjs && make regenerate
cd test && make regenerate
cd proto && make regenerate
install:
cd protoc-gen-gopherjs && go install ./
go install ./vendor/github.com/golang/protobuf/protoc-gen-go
.PHONY: test
test:
cd protoc-gen-gopherjs && make tests
build:
go build $$(go list ./... | grep -v github.com/johanbrandhorst/protobuf/test$$ | grep -v vendor)
integration:
bash -c "\
trap '\
# docker-compose logs selenium && \
docker-compose logs chromedriver && \
docker-compose down' EXIT; \
docker-compose up -d && \
docker-compose exec -T testrunner bash -c '\
mkdir -p /go/src/github.com/johanbrandhorst/protobuf/' && \
docker cp ./ testrunner:/go/src/github.com/johanbrandhorst/protobuf/ && \
docker-compose exec -T testrunner bash -c '\
cd /go/src/github.com/johanbrandhorst/protobuf && \
go install ./vendor/github.com/onsi/ginkgo/ginkgo && \
cd test && make test' \
"
rebuild:
cd grpcweb/grpcwebjs && make build