-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add travis CI and goreleaser to compile and publish to GitHub Releases
- Loading branch information
Showing
2 changed files
with
63 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
language: go | ||
install: true | ||
sudo: required | ||
go: | ||
- 1.8 | ||
- 1.9 | ||
env: | ||
- "PATH=/home/travis/gopath/bin:$PATH" | ||
- PATH=/home/travis/gopath/bin:$PATH | ||
before_install: | ||
- go get github.com/mitchellh/gox | ||
- sudo apt-get -qq update | ||
- sudo apt-get install -y ruby ruby-dev build-essential rpm | ||
- go get -u github.com/golang/dep/cmd/dep | ||
- go get -u github.com/alecthomas/gometalinter | ||
install: | ||
- dep ensure | ||
before_script: | ||
- gometalinter --install | ||
# - gometalinter --vendor ./... | ||
script: | ||
- go get -t ./... | ||
- gox | ||
- git status | ||
after_success: | ||
- gem install --no-ri --no-rdoc fpm | ||
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
project_name: vsphere-influxdb-go | ||
builds: | ||
- binary: vsphere-influxdb-go | ||
goos: | ||
- windows | ||
- darwin | ||
- linux | ||
- freebsd | ||
goarch: | ||
- amd64 | ||
- arm | ||
- arm64 | ||
goarm: | ||
- 6 | ||
- 7 | ||
|
||
archive: | ||
format: tar.gz | ||
files: | ||
- LICENSE.txt | ||
- README.md | ||
fpm: | ||
# Your app's vendor. | ||
# Default is empty. | ||
vendor: Oxalide | ||
# Your app's homepage. | ||
homepage: https://github.com/Oxalide/vsphere-influxdb-go | ||
|
||
# Your app's maintainer (probably you). | ||
maintainer: Adrian Todorov <[email protected]> | ||
|
||
# Your app's description. | ||
description: Collect VMware vSphere, vCenter and ESXi performance metrics and send them to InfluxDB | ||
|
||
# Your app's license. | ||
license: GPL 3.0 | ||
|
||
# Formats to be generated. | ||
formats: | ||
- deb | ||
- rpm | ||
# Files or directories to add to your package (beyond the binary). | ||
# Keys are source paths to get the files from. | ||
# Values are the destination locations of the files in the package. | ||
files: | ||
"vsphere-influxdb.json.sample": "/etc/vsphere-influxdb-go.json" | ||
|