Skip to content

Commit

Permalink
update project template
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jul 14, 2018
1 parent 445dba5 commit 98efb65
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 63 deletions.
120 changes: 58 additions & 62 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,58 @@
---
language: go
sudo: false
notifications:
email: true
go:
- 1.x
- tip
matrix:
allow_failures:
- go: tip
fast_finish: true
install:
- go get github.com/golang/lint/golint
- go get honnef.co/go/tools/cmd/staticcheck
script:
- make all
- make cover
- make release
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: releases
api_key:
secure: "LMrByDP/cIjxaGdXAOrDGtlzsiBt//LRrhrwpdimdl6rnijkc+NlhRhGNItceJzQLs6kz5sihHY1YVaeqzJXnJ+Eo4b0Kz1BQwpOk5DRn85y+tTg2G7HvCIjrWsVleCnbmAK/IbOsVdY7HlK7s0i9eG+7fYfSGiNMevwwtfQjiKH3yFu+nUPPH4Z85Lvz8Wvjg0Nmhnt+nY4R7IFHgMNVGsUn1qjUrrCK8X9fuY3ulnK6nghQ/KSrxyJdkfWWOqs8EfxMpcKH6iL5wYeAXxEFp97WJiqjqIh2RfGjB4q/nRWVWDviVUxUxrgIFh4AEtZMphdKsNhoyyLMZB42O1daP7SCR498xeCZLpx4jTfOTJ6QhD2zJ56rkXlvcEDomCIo+A3fHUiknKLmEnRE6aQQTkn3E49D7A+GG15x/3ec6WBizR1Ht8nMxDh7Z5glVqs8Sf/AHry3RLEYbO6HS2j3Axx6yS9dg5K8keOpKygVpyNNFUb1KDpO/ZJdq4GaBqyjHZoh/PBNvYxHsMhVL9L57LBabckV5pTjGunTTY6CHmhPdzWCVCl1SRRUw1spqZMxydQSkxYd04QqAVsb3vw4f+iA0uTSgWRKpcC0CVjiML1BIxnjXDmBP7v6+oVaEHF9Gyj9+StvodS7GUWScL8p1NvQlHaC4bdzKytMTMuzmc="
file:
- cross/bane-linux-amd64.md5
- cross/bane-windows-386.sha256
- cross/bane-linux-arm
- cross/bane-darwin-amd64.md5
- cross/bane-darwin-amd64
- cross/bane-solaris-amd64.md5
- cross/bane-linux-arm64.sha256
- cross/bane-linux-arm.sha256
- cross/bane-linux-386.sha256
- cross/bane-darwin-386.md5
- cross/bane-windows-386.md5
- cross/bane-freebsd-amd64.md5
- cross/bane-linux-arm64.md5
- cross/bane-linux-arm64
- cross/bane-freebsd-amd64.sha256
- cross/bane-freebsd-386.md5
- cross/bane-linux-amd64.sha256
- cross/bane-linux-386.md5
- cross/bane-freebsd-386
- cross/bane-solaris-amd64.sha256
- cross/bane-windows-amd64
- cross/bane-windows-amd64.md5
- cross/bane-windows-amd64.sha256
- cross/bane-linux-arm.md5
- cross/bane-darwin-386.sha256
- cross/bane-darwin-amd64.sha256
- cross/bane-windows-386
- cross/bane-solaris-amd64
- cross/bane-darwin-386
- cross/bane-linux-386
- cross/bane-freebsd-amd64
- cross/bane-freebsd-386.sha256
- cross/bane-linux-amd64
skip_cleanup: true
on:
tags: true
language: go
sudo: false
go:
- 1.10.x
before_install:
- go get github.com/golang/lint/golint
- go get honnef.co/go/tools/cmd/staticcheck
jobs:
include:
- script: make all
- stage: Run Test Coverage
script: make cover
after_success: bash <(curl -s https://codecov.io/bash)
- stage: Build Release
script:
- make release
- echo "Deploying to GitHub releases ..."
deploy:
provider: releases
file:
- cross/bane-linux-amd64.md5
- cross/bane-windows-386.sha256
- cross/bane-linux-arm
- cross/bane-darwin-amd64.md5
- cross/bane-darwin-amd64
- cross/bane-solaris-amd64.md5
- cross/bane-linux-arm64.sha256
- cross/bane-linux-arm.sha256
- cross/bane-linux-386.sha256
- cross/bane-darwin-386.md5
- cross/bane-windows-386.md5
- cross/bane-freebsd-amd64.md5
- cross/bane-linux-arm64.md5
- cross/bane-linux-arm64
- cross/bane-freebsd-amd64.sha256
- cross/bane-freebsd-386.md5
- cross/bane-linux-amd64.sha256
- cross/bane-linux-386.md5
- cross/bane-freebsd-386
- cross/bane-solaris-amd64.sha256
- cross/bane-windows-amd64
- cross/bane-windows-amd64.md5
- cross/bane-windows-amd64.sha256
- cross/bane-linux-arm.md5
- cross/bane-darwin-386.sha256
- cross/bane-darwin-amd64.sha256
- cross/bane-windows-386
- cross/bane-solaris-amd64
- cross/bane-darwin-386
- cross/bane-linux-386
- cross/bane-freebsd-amd64
- cross/bane-freebsd-386.sha256
- cross/bane-linux-amd64
skip_cleanup: true
on:
tags: true
api_key:
secure: "LMrByDP/cIjxaGdXAOrDGtlzsiBt//LRrhrwpdimdl6rnijkc+NlhRhGNItceJzQLs6kz5sihHY1YVaeqzJXnJ+Eo4b0Kz1BQwpOk5DRn85y+tTg2G7HvCIjrWsVleCnbmAK/IbOsVdY7HlK7s0i9eG+7fYfSGiNMevwwtfQjiKH3yFu+nUPPH4Z85Lvz8Wvjg0Nmhnt+nY4R7IFHgMNVGsUn1qjUrrCK8X9fuY3ulnK6nghQ/KSrxyJdkfWWOqs8EfxMpcKH6iL5wYeAXxEFp97WJiqjqIh2RfGjB4q/nRWVWDviVUxUxrgIFh4AEtZMphdKsNhoyyLMZB42O1daP7SCR498xeCZLpx4jTfOTJ6QhD2zJ56rkXlvcEDomCIo+A3fHUiknKLmEnRE6aQQTkn3E49D7A+GG15x/3ec6WBizR1Ht8nMxDh7Z5glVqs8Sf/AHry3RLEYbO6HS2j3Axx6yS9dg5K8keOpKygVpyNNFUb1KDpO/ZJdq4GaBqyjHZoh/PBNvYxHsMhVL9L57LBabckV5pTjGunTTY6CHmhPdzWCVCl1SRRUw1spqZMxydQSkxYd04QqAVsb3vw4f+iA0uTSgWRKpcC0CVjiML1BIxnjXDmBP7v6+oVaEHF9Gyj9+StvodS7GUWScL8p1NvQlHaC4bdzKytMTMuzmc="
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static: ## Builds a static executable
all: clean build fmt lint test staticcheck vet install ## Runs a clean, build, fmt, lint, test, staticcheck, vet and install

.PHONY: fmt
fmt: ## Verifies all files have men `gofmt`ed
fmt: ## Verifies all files have been `gofmt`ed
@echo "+ $@"
@gofmt -s -l . | grep -v '.pb.go:' | grep -v vendor | tee /dev/stderr

Expand Down

0 comments on commit 98efb65

Please sign in to comment.