mirror of
https://github.com/dnote/dnote
synced 2026-03-18 00:09:56 +01:00
Travis integration. (#39)
* Added Travis integration. * Added mousetrap for Windows. * Removed go 1.6 from build.
This commit is contained in:
parent
9f554c40c0
commit
5bde1d0c0d
2 changed files with 22 additions and 2 deletions
9
.travis.yml
Normal file
9
.travis.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
language: go
|
||||
|
||||
go:
|
||||
- 1.x
|
||||
- 1.7.x
|
||||
- master
|
||||
|
||||
install: make get-deps
|
||||
script: make build
|
||||
15
Makefile
15
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue