Skip to content

Commit 2305086

Browse files
committed
prepare for first release
* 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.
1 parent d4d9c24 commit 2305086

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: go
2+
go: 1.9.x
23
env:
34
global:
45
- CGO_ENABLED: 0
@@ -23,3 +24,28 @@ matrix:
2324
- {os: osx, osx_image: xcode9.3, env: 'POSTGRESQL_VERSION=9.6'}
2425
- {os: osx, osx_image: xcode9.3, env: 'POSTGRESQL_VERSION=10'}
2526
- {os: osx, osx_image: xcode9.3, env: 'RABBITMQ_VERSION=any'}
27+
stages:
28+
- test
29+
- deploy
30+
install:
31+
- echo pass
32+
script:
33+
- go test -v ./...
34+
jobs:
35+
include:
36+
- stage: deploy
37+
os: linux
38+
sudo: false
39+
dist: trusty
40+
if: tag IS present
41+
script:
42+
- go get github.com/mitchellh/gox
43+
- CGO_ENABLED=0 gox -osarch="linux/amd64 darwin/amd64 windows/amd64" -ldflags="-s -w"
44+
deploy:
45+
provider: releases
46+
api_key: $GITHUB_TOKEN
47+
skip_cleanup: true
48+
file_glob: true
49+
file: ci-tricks_*
50+
on:
51+
tags: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RabbitMQ can be set up by setting the `RABBITMQ_VERSION` environment variable to
3636

3737
| Version | Travis/Linux | Travis/macOS | Appveyor/Windows |
3838
| ------------- |:-------------:|:------------:|:---------------------:|
39-
| `any` ||| |
39+
| `any` ||| |
4040

4141
## Contributing
4242

0 commit comments

Comments
 (0)