forked from TheThingsArchive/ttn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (27 loc) · 812 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
language: go
go_import_path: github.com/TheThingsNetwork/ttn
sudo: required
services:
- docker
go:
- "1.14.x"
env:
global:
- GOPROXY=https://proxy.golang.org
- GO111MODULE=on
cache:
directories:
- $HOME/gopath/pkg/mod
install:
- make deps
- make cover-deps
before_script:
- docker run -d -p 127.0.0.1:6379:6379 redis
- docker run -d -p 127.0.0.1:5672:5672 -p 127.0.0.1:1883:1883 -p 127.0.0.1:8883:8883 -v $(pwd)/.env/mqtt:/var/lib/rabbitmq/tls -e RABBITMQ_SSL_CERTFILE=/var/lib/rabbitmq/tls/cert.pem -e RABBITMQ_SSL_KEYFILE=/var/lib/rabbitmq/tls/key.pem -e RABBITMQ_SSL_CACERTFILE=/var/lib/rabbitmq/tls/ca.pem thethingsnetwork/rabbitmq
script:
- GOARCH=amd64 make test
- GOARCH=386 make test
- make fmt
- make vet
after_success:
- make coveralls