Skip to content

Commit b1a3538

Browse files
authored
Fix CI build failures (#140)
* TravisCI: revert to Trusty as distro, Xenial does not support rabbitmq yet * CircleCI: add rabbitmq service * AppVeyor: remove rabbitmq service install and don't test RabbitMQ exporter
1 parent f0327f0 commit b1a3538

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: go
2+
dist: trusty
23

34
services:
45
- rabbitmq
@@ -8,13 +9,13 @@ sudo: false
89
matrix:
910
include:
1011
- go: "1.9.x"
11-
- go: "1.10.x"
12+
- go: "1.10.x"
1213
- go: "1.11.x"
1314
env:
1415
- GO111MODULE=on
1516
- go: "1.12.x"
1617
env:
17-
- GO111MODULE=on
18+
- GO111MODULE=on
1819
- go: "tip"
1920
env:
2021
- GO111MODULE=on

appveyor.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ environment:
1010
GOFLAGS: -mod=readonly
1111

1212
install:
13-
- choco install rabbitmq --ignoredependencies -y
14-
- echo %PATH%
15-
- echo %GOPATH%
1613
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
1714
- go version
1815
- go env

circle.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,10 @@ jobs:
77
- image: circleci/golang
88
steps:
99
- checkout
10+
- run: echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list
11+
- run: wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
12+
- run: sudo apt-get update
13+
- run: sudo apt-get install rabbitmq-server
14+
- run: sudo service rabbitmq-server start
1015
- run: go get -t -v -d ./...
1116
- run: make vet test bench

reporter/amqp/amqp_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var spans = []*model.SpanModel{
1919
}
2020

2121
func TestRabbitProduce(t *testing.T) {
22-
address := "amqp://guest:guest@127.0.0.1:5672/"
22+
address := "amqp://guest:guest@localhost:5672/"
2323
_, ch, closeFunc := setupRabbit(t, address)
2424
defer closeFunc()
2525

0 commit comments

Comments
 (0)