forked from cloudflare/cloudflare-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (54 loc) · 2 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: go
sudo: false
env:
global:
- MOD_VENDOR=""
matrix:
fast_finish: true
include:
- go: 1.9.x
- go: 1.10.x
- go: 1.11.x
env:
- GO111MODULE=on
- MOD_VENDOR="-mod=vendor"
- go: 1.x
env:
- LATEST=true
- GO111MODULE=on
- MOD_VENDOR="-mod=vendor"
- go: tip
env:
- GO111MODULE=on
- MOD_VENDOR="-mod=vendor"
allow_failures:
- go: tip
before_install:
- go get github.com/mitchellh/gox
- go get -u golang.org/x/lint/golint
install:
- # skip
script:
- if [ "$GO111MODULE" != "on" ]; then go get -t -v ./... ; else true; fi
- golint -set_exit_status . cmd/flarectl
- go vet $MOD_VENDOR $(go list $MOD_VENDOR ./... | grep -v /vendor/)
- go test -v -race $MOD_VENDOR ./...
# Only build binaries from the latest Go release.
- if [ "${LATEST}" = "true" ]; then gox -os="linux darwin windows" -arch="amd64" -output="flarectl.{{.OS}}.{{.Arch}}" -ldflags "-X main.Rev=`git rev-parse --short HEAD`" -verbose ./...; fi
notifications:
email:
recipients:
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: MV5fzNIUrZjIz/0Favxlni3xAjI6eMuLClN+O44Yf95KQrW+bDhaRaoxQz+/u1CraTX0f3A552is99qd5K+DbOhKjVq4YMvPimOQgJ7S03S3HNQyTl97K/1gYuss9zyWLFB6li7IDCQTaDjidjUDrYwuPE/stPQDN/JNWk9qWQWQzKwtn1PiCxcfAi//ckuxBUFxoQLLbd8zxKvUOIYha9EUrY/yF252nMHfUkYON5FEtsLXF6AA0A4NRPB2ftryg7oSgyyANO3W3NFKm1Zr2VeI89H5zVT5OA1oxcOPmMPZMQH4wp2JA6ypKQpcE5mQVdDl+t8p0t2oEPiS1ZP98/9q9B6jIvx1qAhk2z5o3uXZm5rFDL7FSq3jVYd9DG02pRq8v5zt7ZJvtHCTukHJxcxrlQ9Sp6lt+m6q3CaUWNP6IUv4Y63PQTCEIMm4tqERj+SBep/1sGVJpRxedB0dl8Ee35X31KKCZQvd8IB1N+iWqOs2ODb13XMj+ocz9m/lgGcis4DVEwFKXd2cxB13bBUzn6uiF2O154D0+kqTFdWAU4ZO9aD9MyTJ/oc4XbWFu64VgOjryak6BhzbHroj0J3htX2rXO9Mz4IN3Z6Yxcfd7F0+YH4MTFEyaiPgWf4Sc0dyP76QzwJTTwMLwVM/on5SwdGL3g+h6cRVORfbvfI=
file:
- flarectl.windows.amd64.exe
- flarectl.darwin.amd64
- flarectl.linux.amd64
on:
repo: cloudflare/cloudflare-go
tags: true
condition: $LATEST = true