-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (36 loc) · 899 Bytes
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
language: go
os:
- linux
- osx
services:
- docker
go:
- 1.9.x
- 1.10.x
- tip
matrix:
fast_finish: true
allow_failures:
- go: tip
branches:
only:
- master
- /^v\d+\.\d+\.\d+(-\S*)?$/
before_install:
- mkdir -p $HOME/bin
- curl -sL https://get.binhq.io/binbrew | DEST=$HOME/bin NAME=bin bash
- bin get golang/[email protected] $HOME/bin
- bin get gobuffalo/[email protected] $HOME/bin
- bin get google/[email protected] $HOME/bin
install: dep ensure -vendor-only
script:
- packr
- go test -v ./...
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then cd clientcompat && ./travis.sh; fi
deploy:
provider: script
skip_cleanup: true
script: bin get goreleaser/[email protected] $HOME/bin && goreleaser
on:
tags: true
condition: $TRAVIS_OS_NAME = linux && $TRAVIS_GO_VERSION =~ ^1\.10(\.[0-9]+)?$