travis: limit builds to supported os/arch list

This commit is contained in:
Jakob Schrettenbrunner 2017-08-02 23:23:13 +02:00
parent 1bbad7d24e
commit 38875bcfac
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@ install:
- glide install
script:
- gox -output "build/{{.Dir}}_{{.OS}}_{{.Arch}}"
- make cross-build
- goverage -v -coverprofile=coverage.out ./...
- godacov -t $CODACY_TOKEN -r ./coverage.out -c $TRAVIS_COMMIT

View File

@ -1,4 +1,5 @@
BINARY = "build/wings"
OSARCHLIST = "darwin/386 darwin/amd64 linux/386 linux/amd64 linux/arm linux/arm64 windows/386 windows/amd64"
all: $(BINARY)
@ -6,7 +7,7 @@ $(BINARY):
go build -o $(BINARY)
cross-build:
gox -output "build/{{.Dir}}_{{.OS}}_{{.Arch}}"
gox -osarch $(OSARCHLIST) -output "build/{{.Dir}}_{{.OS}}_{{.Arch}}"
.PHONY: install
install: