Skip to content

Commit

Permalink
Add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Doyon committed May 19, 2017
1 parent 7ae6d53 commit 2354763
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 18 deletions.
29 changes: 11 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
language: go

go:
- 1.8

# Setting sudo access to false will let Travis CI use containers rather than
# VMs to run the tests. For more details see:
# - http://docs.travis-ci.com/user/workers/container-based-infrastructure/
# - http://docs.travis-ci.com/user/workers/standard-infrastructure/
- 1.8
sudo: false

install:
- wget "https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-amd64.tar.gz"
- mkdir -p $HOME/bin
- tar -vxz -C $HOME/bin --strip=1 -f glide-v0.12.3-linux-amd64.tar.gz
- export PATH="$HOME/bin:$PATH"
- glide install

# The default script is go test -v ./... which will test everything
# in the vendor directory. We don't need to test all dependent packages.
# Only testing this project.
- wget "https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-amd64.tar.gz"
- mkdir -p $HOME/bin
- tar -vxz -C $HOME/bin --strip=1 -f glide-v0.12.3-linux-amd64.tar.gz
- export PATH="$HOME/bin:$PATH"
- glide install
script:
- make integration-test
- make integration-test
after_success: test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
env:
global:
secure: o8PQVjG6nNkP7qBShKErZLo8w4X7xUer+bi9qThRmRNqxIlix2tBsS9mvcth8IhAY7XCewLyTJWxOgqKGyv4lBFHIhj6vNY8tM+RWi1AnnAJedeJrEGASSihnbwTus3VUiT/99jIQwRHlabMLMwqje3NJSF3JaKdUza6wOABFQ+7K3lxLgQPB5Xhw4bQqkISVnuwd15gei/0OpYQIEJsVFTRNoXTkeuK76ftSHbgfx1Gm/cR49RfdHjHEKKFFMyu7i58nm3KVyalr5Sot+i33S4AEjJkjuyGwjYyc+euIPn/TTRJokv4H0228uqOqBcNyFBpwwG+5w9wmymC6Mtx74Uy532APCAsvIA4bjy0nQ1C8fZ9dQXj2lYp3t9rHTNKp1exstWxk/xoetjjqsE7gwwS+mScznW1wu5UrqZOXVW418utry9EZr2+jU9x+658Vztd+ypQ/Pzv3OOT3m/Rc0Qq40bmSv5g8WN6LB7JpV/ABcGWA6SCGzQpSIKKc2mZYF4L8W+uEODqJqseqVv1wtuWqXCfdLnmNRd0L4EhyKfcPQ/m16rsiEl6YqR7ae+8+3+db60NlmUwCcVF8gKG/DKlpp6s3P+fLXN208KqPKV8xUrtsvKoCYqdmAjPm1HBB8NwOtpFOChHqq6K4+kpvMwxGhL5SQQSQe/WlllBqkQ=
22 changes: 22 additions & 0 deletions goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
build:
binary: sqspush
ldflags: -s -w -X main.version={{.Version}}
goos:
- windows
- darwin
- linux
goarch:
- amd64
# Archive customization
archive:
format: tar.gz
format_overrides:
- goos: windows
format: zip
replacements:
amd64: 64-bit
darwin: macOS
linux: Tux
files:
- LICENSE
- README.md

0 comments on commit 2354763

Please sign in to comment.