Skip to content

Commit

Permalink
Add travis, goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed May 12, 2018
1 parent 3169d41 commit a4e113b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.dll
*.so
*.dylib
*~

# Test binary, build with `go test -c`
*.test
Expand Down
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: go

addons:
postgresql: '9.6'

go:
- "1.10"

script:
- go test -p=1 -coverprofile=coverage.text -covermode=atomic github.com/nyaruka/rp-archiver/...

after_success:
- bash <(curl -s https://codecov.io/bash)
- rm coverage.text
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash

15 changes: 15 additions & 0 deletions goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
build:
main: ./cmd/rp-archiver/main.go
binary: rp-archiver
goos:
- windows
- darwin
- linux
goarch:
- amd64

archive:
files:
- LICENSE
- README.md

0 comments on commit a4e113b

Please sign in to comment.