forked from cyrilgdn/terraform-provider-rabbitmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (37 loc) · 865 Bytes
/
.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
dist: trusty
sudo: required
services:
- docker
language: go
go:
- "1.13.x"
env:
global:
- GOFLAGS=-mod=vendor GO111MODULE=on
- RABBITMQ_ENDPOINT="http://127.0.0.1:15672"
- RABBITMQ_USERNAME="guest"
- RABBITMQ_PASSWORD="guest"
jobs:
- RABBITMQ_VERSION=3.8
- RABBITMQ_VERSION=3.7
install:
# This script is used by the Travis build to install a cookie for
# go.googlesource.com so rate limits are higher when using `go get` to fetch
# packages that live there.
# See: https://github.com/golang/go/issues/12933
- bash scripts/gogetcookie.sh
script:
- make test
- make vet
- docker-compose -f $(pwd)/scripts/docker-compose.yml up -d
- $(pwd)/scripts/wait-rabbitmq-docker.sh
- make testacc
- docker-compose -f $(pwd)/scripts/docker-compose.yml down
branches:
only:
- master
- travis
matrix:
fast_finish: true
allow_failures:
- go: tip