Travis integration. (#39)

* Added Travis integration.

* Added mousetrap for Windows.

* Removed go 1.6 from build.
This commit is contained in:
Michiel 2017-12-26 00:36:01 +00:00 committed by Sung Won Cho
commit 5bde1d0c0d
2 changed files with 22 additions and 2 deletions

9
.travis.yml Normal file
View file

@ -0,0 +1,9 @@
language: go
go:
- 1.x
- 1.7.x
- master
install: make get-deps
script: make build

View file

@ -7,10 +7,21 @@ release:
@git push --tags
.PHONY: release
build:
@gox -osarch="darwin/386 darwin/amd64 linux/386 linux/amd64 openbsd/386 openbsd/amd64 window/386 windows/amd64" -output="dnote-{{.OS}}-{{.Arch}}" ./...
build: get-deps install-gox
@$(GOPATH)/bin/gox -osarch="darwin/386 darwin/amd64 linux/386 linux/amd64 openbsd/386 openbsd/amd64 window/386 windows/amd64" -output="dnote-{{.OS}}-{{.Arch}}" ./...
.PHONY: build
get-deps:
@echo "** Downloading dependencies... **"
@go get -t ./...
@go get github.com/inconshreveable/mousetrap
.PHONY: get-deps
install-gox:
@echo "** Installing Gox... **"
@go get github.com/mitchellh/gox
.PHONY: install-gox
clean:
@git clean -f
.PHONY: clean