diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-08-01 22:16:07 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-08-02 11:00:17 +0900 |
commit | 0723aa81489beb4ae5b862c34742be063a0d56e1 (patch) | |
tree | 5ba93d1883826314fb3df3cfe404893877d03a1e | |
parent | 649a42f47c2c39112b54d565fc8f21b96223226d (diff) |
create github releases with binaries
https://github.com/goreleaser/goreleaser
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | .goreleaser.yml | 26 | ||||
-rw-r--r-- | .travis.yml | 2 |
2 files changed, 28 insertions, 0 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 00000000..72c658a2 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,26 @@ +# +# .goreleaser.yml +# Build customization +builds: + - main: ./gobgp/ + binary: gobgp + goos: + - linux + goarch: + - amd64 + - 386 + - arm + + - main: ./gobgpd/ + binary: gobgpd + goos: + - linux + goarch: + - amd64 + - 386 + - arm + +archive: + files: + - LICENSE + - README.md diff --git a/.travis.yml b/.travis.yml index 17a91b87..d2c3bdb5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,8 @@ matrix: before_install: true install: go get -t ./... script: go test ./... + after_success: + - test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash - go: tip before_install: true install: go get -t ./... |