-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
46 lines (38 loc) · 911 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
44
45
46
language: go
sudo: required
services:
- docker
go:
- 1.5
- 1.6
- 1.7
- tip
env:
- BUILD_DOCKER_IMAGES=0
- BUILD_DOCKER_IMAGES=1
matrix:
exclude:
- go: 1.5
env: BUILD_DOCKER_IMAGES=1
- go: 1.6
env: BUILD_DOCKER_IMAGES=1
- go: tip
env: BUILD_DOCKER_IMAGES=1
install:
- go get github.com/gordonklaus/ineffassign
- go get github.com/bradfitz/goimports
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
- if [ "$BUILD_DOCKER_IMAGES" == "1" ]; then
docker build --no-cache -t crenz/mqttrules docker/default;
fi
script:
- go get -t -v ./...
- export PATH=$PATH:$HOME/gopath/bin
- sh test/gosweep.sh
- $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci
after_success:
- if [ "$BUILD_DOCKER_IMAGES" == "1" ]; then
docker login -u="$DOCKER_USER" -p="$DOCKER_PASS";
docker push crenz/mqttrules;
fi