aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/fsouza/go-dockerclient/travis-scripts/run-tests.bash
blob: 0d836cd4f4a814548cea0b9edf21f157be103765 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash -ex

# Copyright 2016 go-dockerclient authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

if ! [[ $TRAVIS_GO_VERSION =~ ^1\.[34] ]]; then
	make lint vet
fi

make fmtcheck gotest GO_TEST_FLAGS=-race

if [[ $TRAVIS_OS_NAME == "linux" ]]; then
	DOCKER_HOST=tcp://127.0.0.1:2375 make integration
fi