travis: limit builds to supported os/arch list
This commit is contained in:
parent
1bbad7d24e
commit
38875bcfac
|
@ -26,7 +26,7 @@ install:
|
||||||
- glide install
|
- glide install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- gox -output "build/{{.Dir}}_{{.OS}}_{{.Arch}}"
|
- make cross-build
|
||||||
- goverage -v -coverprofile=coverage.out ./...
|
- goverage -v -coverprofile=coverage.out ./...
|
||||||
- godacov -t $CODACY_TOKEN -r ./coverage.out -c $TRAVIS_COMMIT
|
- godacov -t $CODACY_TOKEN -r ./coverage.out -c $TRAVIS_COMMIT
|
||||||
|
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -1,4 +1,5 @@
|
||||||
BINARY = "build/wings"
|
BINARY = "build/wings"
|
||||||
|
OSARCHLIST = "darwin/386 darwin/amd64 linux/386 linux/amd64 linux/arm linux/arm64 windows/386 windows/amd64"
|
||||||
|
|
||||||
all: $(BINARY)
|
all: $(BINARY)
|
||||||
|
|
||||||
|
@ -6,7 +7,7 @@ $(BINARY):
|
||||||
go build -o $(BINARY)
|
go build -o $(BINARY)
|
||||||
|
|
||||||
cross-build:
|
cross-build:
|
||||||
gox -output "build/{{.Dir}}_{{.OS}}_{{.Arch}}"
|
gox -osarch $(OSARCHLIST) -output "build/{{.Dir}}_{{.OS}}_{{.Arch}}"
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install:
|
install:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user