Skip to content

Commit

Permalink
prepare for first release
Browse files Browse the repository at this point in the history
* pin to Go 1.9.x for builds. It seems we are affected by a Go 1.10.x regression: golang/go#25042
* cross-compile binaries with mitchellh/gox.
* add GitHub releases deployment from Travis.
* README fixes.
  • Loading branch information
smola committed May 13, 2018
1 parent d4d9c24 commit 607c152
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
language: go
go: 1.9.x
os:
- linux
- osx
env:
global:
- CGO_ENABLED: 0
Expand All @@ -23,3 +27,28 @@ matrix:
- {os: osx, osx_image: xcode9.3, env: 'POSTGRESQL_VERSION=9.6'}
- {os: osx, osx_image: xcode9.3, env: 'POSTGRESQL_VERSION=10'}
- {os: osx, osx_image: xcode9.3, env: 'RABBITMQ_VERSION=any'}
stages:
- test
- deploy
install:
- echo pass
script:
- go test -v ./...
jobs:
include:
- stage: deploy
os: linux
sudo: false
dist: trusty
if: tag IS present
script:
- go get github.com/mitchellh/gox
- gox -osarch="linux/amd64 darwin/amd64 windows/amd64" -ldflags="-s -w"
deploy:
provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
file_glob: true
file: ci-tricks_*
on:
tags: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RabbitMQ can be set up by setting the `RABBITMQ_VERSION` environment variable to

| Version | Travis/Linux | Travis/macOS | Appveyor/Windows |
| ------------- |:-------------:|:------------:|:---------------------:|
| `any` ||| |
| `any` ||| |

## Contributing

Expand Down

0 comments on commit 607c152

Please sign in to comment.