-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
47 lines (38 loc) · 1.73 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
sudo: false
language: go
go:
- 1.4.2
- tip
matrix:
allow_failures:
- go: tip
env:
- CONSULKV_VERSION=${TRAVIS_TAG#v}
before_install:
- go get golang.org/x/tools/cmd/goimports
- go get golang.org/x/tools/cmd/vet
- go get github.com/golang/lint/golint
- go get github.com/hashicorp/consul
before_script:
- goimports -l ./ | xargs -r false
- go vet ./...
- golint ./... | xargs -r false
script:
- go test -v ./...
before_deploy:
- go get github.com/laher/goxc
- goxc -+tasks=toolchain -wd=. -d "$TRAVIS_BUILD_DIR" -pv "$CONSULKV_VERSION"
deploy:
provider: releases
api_key:
secure: LZrfgj3SKPVA/0up2QOU1MdB2VivYRuuNCVl6dx3keHoZ4OQXY3V1zibC7iqymW8LgYjaYxVGAKqzT/HM5voL0T8YmL6GP0YdgyRn5INCKJkO6kPOp8AtIuK2UdvDPk4RVX4weITml/2/XSYst2jDnem3bt8uZPYXCs+S2ZLqLNvdO3EdBNkNEaKC4VSi5eIHWZBpks6IRWoKIAlkZa7ydvToSGqbB+H0oB8jb0ISNMZE3nqw7J6HAZ6o6JkWOFHKopjlRqSGT4Gzm37hUV2az5m65C4x8as/7edme/YCf140ZaadV5f/rd+lixZ4IJFHVKYB5nd3Gq2wiGNJLwLeh+pYvDbGvdGbPcX/KwMBQ8zFNxWHztKaGN1qRPsvqs23K7WXhkvd1hzmFivB7HDj3odTbrhTJpkDgm1RMNE2uzL+EAOgVEVStEcNemvP6N0DCuYXprcZu8/JJz52HW5Y8WFYVwR3mrAijwoMbj3E7uZZ1ldoo+Cac4ucZ/Fzjgxz2Ca83FCVXphcDaTtKSlu/mTm92spIcV+pDk4ExSKuE6dXJh4XCo7UU1M3kGlYONK2RokXlCCUDbQ40J3npAhQ85jaVsCzr66EAmsVTa9bDHLnzvOqYK1Z5T+qQf3RyA4cYVC92j5V7GOHtVBs9lZVEcQIZcj+dgCNp1aFq+wHQ=
file:
- "$TRAVIS_BUILD_DIR/$CONSULKV_VERSION/consulkv_${CONSULKV_VERSION}_darwin_amd64.zip"
- "$TRAVIS_BUILD_DIR/$CONSULKV_VERSION/consulkv_${CONSULKV_VERSION}_linux_386.tar.gz"
- "$TRAVIS_BUILD_DIR/$CONSULKV_VERSION/consulkv_${CONSULKV_VERSION}_linux_amd64.tar.gz"
- "$TRAVIS_BUILD_DIR/$CONSULKV_VERSION/consulkv_${CONSULKV_VERSION}_windows_386.zip"
skip_cleanup: true
on:
repo: spiritloose/consulkv
tags: true
go: 1.4.2