Skip to content

Commit f757e7a

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 f757e7a

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.travis.yml

Lines changed: 23 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,25 @@ 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+
install:
28+
- echo pass
29+
script:
30+
- go test -v ./...
31+
jobs:
32+
include:
33+
- stage: deploy
34+
os: linux
35+
sudo: false
36+
dist: trusty
37+
if: tag IS present
38+
script:
39+
- go get github.com/mitchellh/gox
40+
- CGO_ENABLED=0 gox -osarch="linux/amd64 darwin/amd64 windows/amd64" -ldflags="-s -w"
41+
deploy:
42+
provider: releases
43+
api_key: $GITHUB_TOKEN
44+
skip_cleanup: true
45+
file_glob: true
46+
file: ci-tricks_*
47+
on:
48+
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)