-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
32 lines (25 loc) · 1.32 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
29
30
31
32
sudo: false
language: go
go:
- 1.4
branches:
only:
- master
- /^v\d+.\d+.\d+$/
install:
- go get -v github.com/cimpress-mcp/gosecret/...
script:
- go test github.com/cimpress-mcp/gosecret
- go test github.com/cimpress-mcp/gosecret/api
after_success:
- 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/gosecret -uryanbreen:$BINTRAY_KEY https://api.bintray.com/content/cimpress-mcp/Go/gosecret/$TRAVIS_TAG/$TRAVIS_TAG/darwin-amd64/gosecret
- curl -T build/linux/amd64/gosecret -uryanbreen:$BINTRAY_KEY https://api.bintray.com/content/cimpress-mcp/Go/gosecret/$TRAVIS_TAG/$TRAVIS_TAG/linux-amd64/gosecret
- curl -T build/windows/amd64/gosecret.exe -uryanbreen:$BINTRAY_KEY https://api.bintray.com/content/cimpress-mcp/Go/gosecret/$TRAVIS_TAG/$TRAVIS_TAG/windows-amd64/gosecret.exe
- curl -XPOST -uryanbreen:$BINTRAY_KEY https://api.bintray.com/content/cimpress-mcp/Go/gosecret/$TRAVIS_TAG/publish
env:
global:
- secure: "mHRbR1ckSMWsAxJ90QqrOQZomDPLD6Xj+8EPNFV/jBUSPwqheh2SX7Db0oLwok/OCAYy1lIFA3NrWQ+EodJUaY08f/+HZWQHR4IckNXFMqeDhl1uVX2cv2TRmsy9MJ70CwiM2mfiD2kyEWEsx8H2t4TRIsQ6qil64TNiYrnrqQM="