forked from iwanbk/go-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
235 lines (230 loc) · 6.88 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# Copyright 2020 New Relic Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
language: go
go_import_path: github.com/newrelic/go-agent
matrix:
include:
#
# Go Agent Version 2
#
- go: "1.3"
env: DIRS=.
- go: "1.4"
env: DIRS=.
- go: "1.5"
env: DIRS=.
- go: "1.6"
env: DIRS=.
- go: "1.7"
env: DIRS=.
- go: "1.8"
env: DIRS=.
- go: "1.9"
env: DIRS=.
- go: "1.10"
env: DIRS=.
- go: "1.11"
env: DIRS=.
- go: "1.12"
env: DIRS=.
- go: "1.13"
env: DIRS=.
- go: "1.13"
env: DIRS=_integrations/nrawssdk
- go: "1.13"
env: DIRS=_integrations/nrecho
- go: "1.13"
env: DIRS=_integrations/nrgin/v1
- go: "1.13"
env: DIRS=_integrations/nrgorilla/v1
- go: "1.13"
env: DIRS=_integrations/nrlogrus
- go: "1.13"
env: DIRS=_integrations/nrlogxi/v1
- go: "1.13"
env: DIRS=_integrations/nrpkgerrors
- go: "1.13"
env: DIRS=_integrations/nrlambda
- go: "1.13"
env: DIRS=_integrations/nrmysql
- go: "1.13"
env: DIRS=_integrations/nrpq
- go: "1.13"
env: DIRS=_integrations/nrsqlite3
- go: "1.13"
env: DIRS=_integrations/nrgrpc
# As of October 2019, errors result from go get -u github.com/micro/go-micro
# - go: "1.13"
# env: DIRS=_integrations/nrmicro
- go: "1.13"
env: DIRS=_integrations/nrnats
- go: "1.13"
env: DIRS=_integrations/nrstan
- go: "1.13"
env: DIRS=_integrations/logcontext
- go: "1.13"
env: DIRS=_integrations/nrzap
- go: "1.13"
env: DIRS=_integrations/nrhttprouter
- go: "1.13"
env: DIRS=_integrations/nrb3
- go: "1.13"
env: DIRS=_integrations/nrmongo
#
# Go Agent Version 3
#
- go: "1.7"
env: DIRS=v3/newrelic,v3/internal,v3/examples
- go: "1.8"
env: DIRS=v3/newrelic,v3/internal,v3/examples
- go: "1.9"
env: DIRS=v3/newrelic,v3/internal,v3/examples
- go: "1.10"
env: DIRS=v3/newrelic,v3/internal,v3/examples
- go: "1.11.9"
# on 4/13/20 go get -u github.com/golang/protobuf/protoc-gen-go was failing
# for go1.11.0, so we specify the latest version to get around that error.
env: DIRS=v3/newrelic,v3/internal,v3/examples
- go: "1.12"
env: DIRS=v3/newrelic,v3/internal,v3/examples
- go: "1.13.4"
env: DIRS=v3/newrelic,v3/internal,v3/examples
- go: "1.14"
env: DIRS=v3/newrelic,v3/internal,v3/examples,v3/integrations/logcontext
- go: "1.14"
env:
- DIRS=v3/integrations/logcontext/nrlogrusplugin
- EXTRATESTING="go get -u github.com/sirupsen/logrus@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrawssdk-v1
- EXTRATESTING="go get -u github.com/aws/aws-sdk-go@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrawssdk-v2
- EXTRATESTING="go get -u github.com/aws/aws-sdk-go-v2@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrecho-v3
# Test against the latest v3 Echo:
- EXTRATESTING="go get -u github.com/labstack/echo@v3"
- go: "1.14"
env:
- DIRS=v3/integrations/nrecho-v4
- EXTRATESTING="go get -u github.com/labstack/echo/v4@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrelasticsearch-v7
- EXTRATESTING="go get -u github.com/elastic/go-elasticsearch/[email protected]"
- go: "1.14"
env:
- DIRS=v3/integrations/nrgin
- EXTRATESTING="go get -u github.com/gin-gonic/gin@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrgorilla
- EXTRATESTING="go get -u github.com/gorilla/mux@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrgraphgophers
- EXTRATESTING="go get -u github.com/graph-gophers/graphql-go@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrlogrus
- EXTRATESTING="go get -u github.com/sirupsen/logrus@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrlogxi
- EXTRATESTING="go get -u github.com/mgutz/logxi@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrpkgerrors
- EXTRATESTING="go get -u github.com/pkg/errors@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrlambda
- EXTRATESTING="go get -u github.com/aws/aws-lambda-go@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrmysql
- EXTRATESTING="go get -u github.com/go-sql-driver/mysql@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrpq
- EXTRATESTING="go get -u github.com/lib/pq@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrpq/example/sqlx
- go: "1.14"
env:
- DIRS=v3/integrations/nrredis-v7
- EXTRATESTING="go get -u github.com/go-redis/redis/v7@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrsqlite3
- EXTRATESTING="go get -u github.com/mattn/go-sqlite3@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrsnowflake
- EXTRATESTING="go get -u github.com/snowflakedb/gosnowflake@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrgrpc
# As of Nov 2019, go get -u google.golang.org/grpc@master
# doesn't work. So instead let's test against the latest
# released version.
- EXTRATESTING="go get -u google.golang.org/grpc@latest"
- go: "1.14"
env:
- DIRS=v3/integrations/nrmicro
# As of Dec 2019, there is a race condition in when using go-micro@master
# in their logging system. Instead, we'll test against the latest
# released version.
# As of Jan 2019, it is impossible to go get the latest micro version.
# - EXTRATESTING="go get -u github.com/micro/go-micro@latest"
- go: "1.14"
env:
- DIRS=v3/integrations/nrnats
- EXTRATESTING="go get -u github.com/nats-io/nats.go/@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrnats/test
- EXTRATESTING="go get -u github.com/nats-io/nats.go/@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrstan
- EXTRATESTING="go get -u github.com/nats-io/stan.go/@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrstan/test
- EXTRATESTING="go get -u github.com/nats-io/stan.go/@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrstan/examples
- EXTRATESTING="go get -u github.com/nats-io/stan.go/@master"
- go: "1.14"
env:
- DIRS=v3/integrations/logcontext
- EXTRATESTING="go get -u github.com/sirupsen/logrus@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrzap
- EXTRATESTING="go get -u go.uber.org/zap@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrhttprouter
- EXTRATESTING="go get -u github.com/julienschmidt/httprouter@master"
- go: "1.14"
env: DIRS=v3/integrations/nrb3
- go: "1.14"
env:
- DIRS=v3/integrations/nrmongo
- EXTRATESTING="go get -u go.mongodb.org/mongo-driver@master"
- go: "1.14"
env:
- DIRS=v3/integrations/nrgraphqlgo,v3/integrations/nrgraphqlgo/example
- EXTRATESTING="go get -u github.com/graphql-go/graphql@master"
# Skip the install step. Don't `go get` dependencies.
install: true
script:
- bash build-script.sh