2016-07-20 06:42:19 +00:00
|
|
|
.PHONY: statusgo all test xgo clean
|
|
|
|
.PHONY: statusgo-android statusgo-ios
|
|
|
|
|
2016-06-18 18:28:08 +00:00
|
|
|
GOBIN = build/bin
|
2016-06-17 11:55:54 +00:00
|
|
|
GO ?= latest
|
|
|
|
|
|
|
|
statusgo:
|
2016-10-13 11:46:54 +00:00
|
|
|
build/env.sh go build -i -o $(GOBIN)/statusgo -v $(shell build/testnet-flags.sh) ./cmd/status
|
2016-06-18 18:28:08 +00:00
|
|
|
@echo "status go compilation done."
|
|
|
|
@echo "Run \"build/bin/statusgo\" to view available commands"
|
2016-06-17 11:55:54 +00:00
|
|
|
|
2016-07-20 06:42:19 +00:00
|
|
|
statusgo-cross: statusgo-android statusgo-ios
|
2016-10-13 11:46:54 +00:00
|
|
|
@echo "Full cross compilation done."
|
2016-07-20 06:42:19 +00:00
|
|
|
@ls -ld $(GOBIN)/statusgo-*
|
|
|
|
|
2016-06-17 11:55:54 +00:00
|
|
|
statusgo-android: xgo
|
2016-10-13 11:46:54 +00:00
|
|
|
build/env.sh $(GOBIN)/xgo --image farazdagi/xgo --go=$(GO) -out statusgo --dest=$(GOBIN) --targets=android-16/aar -v $(shell build/testnet-flags.sh) ./cmd/status
|
|
|
|
@echo "Android cross compilation done."
|
2016-06-17 11:55:54 +00:00
|
|
|
|
2016-07-20 06:42:19 +00:00
|
|
|
statusgo-ios: xgo
|
2016-10-13 11:46:54 +00:00
|
|
|
build/env.sh $(GOBIN)/xgo --image farazdagi/xgo --go=$(GO) -out statusgo --dest=$(GOBIN) --targets=ios-9.3/framework -v $(shell build/testnet-flags.sh) ./cmd/status
|
|
|
|
@echo "iOS framework cross compilation done."
|
2016-07-20 06:42:19 +00:00
|
|
|
|
|
|
|
statusgo-ios-simulator: xgo
|
2016-12-15 23:00:08 +00:00
|
|
|
@build/env.sh docker pull farazdagi/xgo-ios-simulator
|
2016-10-13 11:46:54 +00:00
|
|
|
build/env.sh $(GOBIN)/xgo --image farazdagi/xgo-ios-simulator --go=$(GO) -out statusgo --dest=$(GOBIN) --targets=ios-9.3/framework -v $(shell build/testnet-flags.sh) ./cmd/status
|
|
|
|
@echo "iOS framework cross compilation done."
|
2016-07-20 06:42:19 +00:00
|
|
|
|
2016-06-17 11:55:54 +00:00
|
|
|
xgo:
|
2016-09-22 19:31:05 +00:00
|
|
|
build/env.sh docker pull farazdagi/xgo
|
2016-06-18 18:28:08 +00:00
|
|
|
build/env.sh go get github.com/karalabe/xgo
|
2016-07-20 06:42:19 +00:00
|
|
|
|
2016-10-13 11:46:54 +00:00
|
|
|
statusgo-mainnet:
|
|
|
|
build/env.sh go build -i -o $(GOBIN)/statusgo -v $(shell build/mainnet-flags.sh) ./cmd/status
|
|
|
|
@echo "status go compilation done (mainnet)."
|
|
|
|
@echo "Run \"build/bin/statusgo\" to view available commands"
|
|
|
|
|
|
|
|
statusgo-android-mainnet: xgo
|
|
|
|
build/env.sh $(GOBIN)/xgo --image farazdagi/xgo --go=$(GO) -out statusgo --dest=$(GOBIN) --targets=android-16/aar -v $(shell build/mainnet-flags.sh) ./cmd/status
|
|
|
|
@echo "Android cross compilation done (mainnet)."
|
|
|
|
|
|
|
|
statusgo-ios-mainnet: xgo
|
|
|
|
build/env.sh $(GOBIN)/xgo --image farazdagi/xgo --go=$(GO) -out statusgo --dest=$(GOBIN) --targets=ios-9.3/framework -v $(shell build/mainnet-flags.sh) ./cmd/status
|
|
|
|
@echo "iOS framework cross compilation done (mainnet)."
|
|
|
|
|
|
|
|
statusgo-ios-simulator-mainnet: xgo
|
|
|
|
build/env.sh $(GOBIN)/xgo --image farazdagi/xgo-ios-simulator --go=$(GO) -out statusgo --dest=$(GOBIN) --targets=ios-9.3/framework -v $(shell build/mainnet-flags.sh) ./cmd/status
|
|
|
|
@echo "iOS framework cross compilation done (mainnet)."
|
|
|
|
|
2016-09-28 08:07:30 +00:00
|
|
|
ci:
|
|
|
|
build/env.sh go test -v -cover ./geth
|
2017-03-15 21:03:01 +00:00
|
|
|
build/env.sh go test -v -cover ./geth/params
|
2017-03-14 22:57:07 +00:00
|
|
|
build/env.sh go test -v -cover ./geth/jail
|
2016-09-28 08:07:30 +00:00
|
|
|
build/env.sh go test -v -cover ./extkeys
|
|
|
|
|
2017-03-14 22:57:07 +00:00
|
|
|
test:
|
2016-09-11 11:44:14 +00:00
|
|
|
@build/env.sh echo "mode: set" > coverage-all.out
|
2017-03-14 22:57:07 +00:00
|
|
|
build/env.sh go test -coverprofile=coverage.out -covermode=set ./geth
|
|
|
|
@build/env.sh tail -n +2 coverage.out >> coverage-all.out
|
2017-03-15 21:03:01 +00:00
|
|
|
build/env.sh go test -coverprofile=coverage.out -covermode=set ./geth/params
|
|
|
|
@build/env.sh tail -n +2 coverage.out >> coverage-all.out
|
2017-03-14 22:57:07 +00:00
|
|
|
build/env.sh go test -coverprofile=coverage.out -covermode=set ./geth/jail
|
2016-09-11 11:44:14 +00:00
|
|
|
@build/env.sh tail -n +2 coverage.out >> coverage-all.out
|
|
|
|
build/env.sh go test -coverprofile=coverage.out -covermode=set ./extkeys
|
|
|
|
@build/env.sh tail -n +2 coverage.out >> coverage-all.out
|
2016-11-05 17:12:24 +00:00
|
|
|
build/env.sh go test -coverprofile=coverage.out -covermode=set ./cmd/status
|
|
|
|
@build/env.sh tail -n +2 coverage.out >> coverage-all.out
|
2016-09-11 11:44:14 +00:00
|
|
|
@build/env.sh go tool cover -html=coverage-all.out -o coverage.html
|
|
|
|
@build/env.sh go tool cover -func=coverage-all.out
|
|
|
|
|
|
|
|
test-geth:
|
2017-03-14 22:57:07 +00:00
|
|
|
build/env.sh go test -v -coverprofile=coverage.out ./geth
|
|
|
|
@build/env.sh go tool cover -html=coverage.out -o coverage.html
|
|
|
|
@build/env.sh go tool cover -func=coverage.out
|
|
|
|
|
2017-03-15 21:03:01 +00:00
|
|
|
test-config:
|
|
|
|
build/env.sh go test -v -coverprofile=coverage.out ./geth/params
|
|
|
|
@build/env.sh go tool cover -html=coverage.out -o coverage.html
|
|
|
|
@build/env.sh go tool cover -func=coverage.out
|
|
|
|
|
2017-03-14 22:57:07 +00:00
|
|
|
test-jail:
|
|
|
|
build/env.sh go test -v -coverprofile=coverage.out ./geth/jail
|
2016-09-11 11:44:14 +00:00
|
|
|
@build/env.sh go tool cover -html=coverage.out -o coverage.html
|
|
|
|
@build/env.sh go tool cover -func=coverage.out
|
|
|
|
|
|
|
|
test-extkeys:
|
|
|
|
build/env.sh go test -v -coverprofile=coverage.out ./extkeys
|
|
|
|
@build/env.sh go tool cover -html=coverage.out -o coverage.html
|
|
|
|
@build/env.sh go tool cover -func=coverage.out
|
2016-07-20 06:42:19 +00:00
|
|
|
|
2016-12-07 21:07:08 +00:00
|
|
|
test-cmd:
|
|
|
|
build/env.sh go test -v -coverprofile=coverage.out ./cmd/status
|
|
|
|
@build/env.sh go tool cover -html=coverage.out -o coverage.html
|
|
|
|
@build/env.sh go tool cover -func=coverage.out
|
|
|
|
|
2016-07-20 06:42:19 +00:00
|
|
|
clean:
|
|
|
|
rm -fr build/bin/*
|
2016-09-11 11:44:14 +00:00
|
|
|
rm coverage.out coverage-all.out coverage.html
|