1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-11 19:29:16 +08:00
Mainflux.mainflux/.travis.yml
2016-10-12 23:59:13 +02:00

30 lines
738 B
YAML

language: go
go:
- 1.7
before_install:
- sudo apt-get -qq update
##
# Travis is running `go test -v ./...`
# and this runs tests in `vendor` directory also.
# There is a lot of problems with running these 3rd party tests
# (missing DB connections for DBs we do not use, etc).
# Best is to remove vendoring and force Travis build upon $GOPATH
# and then testing is done just for our current dir (Mainflux tests only)
##
- rm -rf vendor
# Sudo is required for docker
sudo: required
# Enable docker
services:
- docker
# In Travis, we need to bind to 127.0.0.1 in order to get a working connection. This environment variable
# tells dockertest to do that.
env:
- DOCKERTEST_BIND_LOCALHOST=true