forked from ForceCLI/force
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
124 lines (124 loc) · 4.39 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
language: go
go:
- 1.6
before_install:
- go get golang.org/x/tools/cmd/goimports
- go get github.com/mitchellh/gox
install:
- go get github.com/bmizerany/assert
- go get github.com/ddollar/dist
- go get github.com/devangel/config
- go get github.com/ViViDboarder/gotifier
- go get github.com/bgentry/speakeasy
- go get bitbucket.org/pkg/inflect
- go get github.com/onsi/ginkgo
- go get github.com/onsi/gomega
- go get github.com/kr/binarydist
- go get github.com/kr/pretty
- go get github.com/kr/text
- go get golang.org/x/crypto/ssh/terminal
script:
- git config --global user.email "you@example.com"
- git config --global user.name "Your Name"
- test -z "$(go fmt)"
- go vet
- go test -v
- go test -v -race
- export OS_TARGETS="darwin windows linux"
- export ARCH_TARGETS="386 amd64"
- export GO_LINKER_VALUE=$(git describe --tags --always)
- export GO_LINKER_SYMBOL="main.Version"
- gox -os "$OS_TARGETS" -arch="$ARCH_TARGETS" -ldflags "-X $GO_LINKER_SYMBOL $GO_LINKER_VALUE"
- mkdir -p darwin/amd64 && cp force_darwin_amd64 darwin/amd64/force
- mkdir -p darwin/386 && cp force_darwin_386 darwin/386/force
- mkdir -p windows/amd64 && cp force_windows_amd64.exe windows/amd64/force.exe
- mkdir -p windows/386 && cp force_windows_386.exe windows/386/force.exe
- mkdir -p linux/amd64 && cp force_linux_amd64 linux/amd64/force
- mkdir -p linux/386 && cp force_linux_386 linux/386/force
deploy:
- provider: releases
skip_cleanup: true
api_key:
secure: W+4pJY7DjLNMU91i3LAOqr6FV+PUnoqCoY1kM9IZ391MCot6EAHkYAdlhSJ2+qllIWmamp7Dtv7Ul4AAfhnAbKJY+J2w5/HczctvjGvcER/QIiWgPfZaNkAqBcWu8XXjdJ876J6sfzWVudK/onnPgpKvtVX0WRZEBXgUl0QJp2g=
file:
- force_darwin_amd64
- force_darwin_386
- force_linux_amd64
- force_linux_386
- force_windows_amd64.exe
- force_windows_386.exe
on:
tags: true
repo: heroku/force
- provider: s3
skip_cleanup: true
access_key_id: AKIAITTRSYTRTVZLGNQQ
secret_access_key:
secure: bAiAyCQKHlEiIA3Uz1yOE+kPieydEoXMlJX5gkdOImiH2oyDXPtmZJzqogl2mMqPO1g6Syjb+W5z3FARmp8gg/Yz9OELvUGKoMdPB7m3Z7oZ3+CR/uj3OSGzwK2Yoa7StjPIZrUHvxGQ+rMpcOfEcR2dJC/coDefvzxzrBHzDf8=
local_dir: darwin/amd64
bucket: force-cli
upload-dir: heroku/force/$GO_LINKER_VALUE/darwin-amd64
acl: public_read
on:
tags: true
repo: heroku/force
- provider: s3
skip_cleanup: true
access_key_id: AKIAITTRSYTRTVZLGNQQ
secret_access_key:
secure: bAiAyCQKHlEiIA3Uz1yOE+kPieydEoXMlJX5gkdOImiH2oyDXPtmZJzqogl2mMqPO1g6Syjb+W5z3FARmp8gg/Yz9OELvUGKoMdPB7m3Z7oZ3+CR/uj3OSGzwK2Yoa7StjPIZrUHvxGQ+rMpcOfEcR2dJC/coDefvzxzrBHzDf8=
local_dir: darwin/386
bucket: force-cli
upload-dir: heroku/force/$GO_LINKER_VALUE/darwin-386
acl: public_read
on:
tags: true
repo: heroku/force
- provider: s3
skip_cleanup: true
access_key_id: AKIAITTRSYTRTVZLGNQQ
secret_access_key:
secure: bAiAyCQKHlEiIA3Uz1yOE+kPieydEoXMlJX5gkdOImiH2oyDXPtmZJzqogl2mMqPO1g6Syjb+W5z3FARmp8gg/Yz9OELvUGKoMdPB7m3Z7oZ3+CR/uj3OSGzwK2Yoa7StjPIZrUHvxGQ+rMpcOfEcR2dJC/coDefvzxzrBHzDf8=
local_dir: windows/amd64
bucket: force-cli
upload-dir: heroku/force/$GO_LINKER_VALUE/windows-amd64
acl: public_read
on:
tags: true
repo: heroku/force
- provider: s3
skip_cleanup: true
access_key_id: AKIAITTRSYTRTVZLGNQQ
secret_access_key:
secure: bAiAyCQKHlEiIA3Uz1yOE+kPieydEoXMlJX5gkdOImiH2oyDXPtmZJzqogl2mMqPO1g6Syjb+W5z3FARmp8gg/Yz9OELvUGKoMdPB7m3Z7oZ3+CR/uj3OSGzwK2Yoa7StjPIZrUHvxGQ+rMpcOfEcR2dJC/coDefvzxzrBHzDf8=
local_dir: windows/386
bucket: force-cli
upload-dir: heroku/force/$GO_LINKER_VALUE/windows-386
acl: public_read
on:
tags: true
repo: heroku/force
- provider: s3
skip_cleanup: true
access_key_id: AKIAITTRSYTRTVZLGNQQ
secret_access_key:
secure: bAiAyCQKHlEiIA3Uz1yOE+kPieydEoXMlJX5gkdOImiH2oyDXPtmZJzqogl2mMqPO1g6Syjb+W5z3FARmp8gg/Yz9OELvUGKoMdPB7m3Z7oZ3+CR/uj3OSGzwK2Yoa7StjPIZrUHvxGQ+rMpcOfEcR2dJC/coDefvzxzrBHzDf8=
local_dir: linux/amd64
bucket: force-cli
upload-dir: heroku/force/$GO_LINKER_VALUE/linux-amd64
acl: public_read
on:
tags: true
repo: heroku/force
- provider: s3
skip_cleanup: true
access_key_id: AKIAITTRSYTRTVZLGNQQ
secret_access_key:
secure: bAiAyCQKHlEiIA3Uz1yOE+kPieydEoXMlJX5gkdOImiH2oyDXPtmZJzqogl2mMqPO1g6Syjb+W5z3FARmp8gg/Yz9OELvUGKoMdPB7m3Z7oZ3+CR/uj3OSGzwK2Yoa7StjPIZrUHvxGQ+rMpcOfEcR2dJC/coDefvzxzrBHzDf8=
local_dir: linux/386
bucket: force-cli
upload-dir: heroku/force/$GO_LINKER_VALUE/linux-386
acl: public_read
on:
tags: true
repo: heroku/force