-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
28 lines (28 loc) · 1.48 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: go
dist: trusty
sudo: false
go:
- 1.8.x
before_script:
- wget https://releases.hashicorp.com/consul/0.6.3/consul_0.6.3_linux_amd64.zip
- unzip consul_0.6.3_linux_amd64.zip
- mkdir consul_data
- ./consul agent -server -bootstrap -data-dir=consul_data -config-file=test_data/consul-config.json &
- sleep 5
- git config --global user.email "[email protected]"
- git config --global user.name "Ryan Breen"
script:
- go test
after_success:
- kill %1
- test ! $TRAVIS_TAG && exit
- go get -x github.com/mitchellh/gox
- gox -build-toolchain -osarch="linux/amd64 darwin/amd64 windows/amd64"
- gox -output="build/{{.OS}}/{{.Arch}}/{{.Dir}}" -osarch="linux/amd64 darwin/amd64 windows/amd64"
- curl -T build/darwin/amd64/fsconsul -uryanbreen:$BINTRAY_KEY https://api.bintray.com/content/cimpress-mcp/Go/fsconsul/$TRAVIS_TAG/$TRAVIS_TAG/darwin-amd64/fsconsul
- curl -T build/linux/amd64/fsconsul -uryanbreen:$BINTRAY_KEY https://api.bintray.com/content/cimpress-mcp/Go/fsconsul/$TRAVIS_TAG/$TRAVIS_TAG/linux-amd64/fsconsul
- curl -T build/windows/amd64/fsconsul.exe -uryanbreen:$BINTRAY_KEY https://api.bintray.com/content/cimpress-mcp/Go/fsconsul/$TRAVIS_TAG/$TRAVIS_TAG/windows-amd64/fsconsul.exe
- curl -XPOST -uryanbreen:$BINTRAY_KEY https://api.bintray.com/content/cimpress-mcp/Go/fsconsul/$TRAVIS_TAG/publish
env:
global:
- secure: E3uZL0mrudFxOowDIt+ruTlg5HVZJyGRXoZ/XwLG0ukW+T+Zhh81B7PTiWM2DO34OIcHRYozqutn+P9gf/avJ+2K7I0gWc/8peLff7tn+bWGtY9UNMCF328KTlKEDUW86QcxM50cGblLCKq1R+K7UnpJP8cePvTqD0z/3zA4wyo=