Re-arrange travis build.
This commit is contained in:
parent
91bc422f7f
commit
a18642b0df
|
|
@ -13,7 +13,7 @@ go:
|
||||||
- 1.12.x
|
- 1.12.x
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
before_install:
|
install:
|
||||||
- mkdir -p $GOPATH/bin
|
- mkdir -p $GOPATH/bin
|
||||||
# Download the `dep` binary to bin folder in $GOPATH
|
# Download the `dep` binary to bin folder in $GOPATH
|
||||||
- curl -sLo $GOPATH/bin/dep https://github.com/golang/dep/releases/download/v0.5.3/dep-linux-amd64
|
- curl -sLo $GOPATH/bin/dep https://github.com/golang/dep/releases/download/v0.5.3/dep-linux-amd64
|
||||||
|
|
@ -22,15 +22,11 @@ before_install:
|
||||||
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest
|
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest
|
||||||
#- curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
|
#- curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
|
||||||
- rvm install 2.0.0
|
- rvm install 2.0.0
|
||||||
install:
|
|
||||||
- rvm 2.0.0 do gem install --no-document fpm
|
- rvm 2.0.0 do gem install --no-document fpm
|
||||||
- make docker
|
- make docker
|
||||||
script:
|
script:
|
||||||
# Test built docker image.
|
# Test built docker image.
|
||||||
- docker run -d --name unifi-poller golift/unifi-poller | tee docker_id
|
- docker run golift/unifi-poller 2>&1 | grep -Eq "Loading Configuration File[:] /etc/unifi-poller/up.conf"
|
||||||
# Once we figure out how to keep it running we can remove the -a in ps args.
|
|
||||||
- docker ps -a | grep -q unifi-poller
|
|
||||||
- docker logs $(<docker_id) 2>&1 | grep -Eq "Loading Configuration File[:] /etc/unifi-poller/up.conf"
|
|
||||||
# test and build everything
|
# test and build everything
|
||||||
- rvm 2.0.0 do make release
|
- rvm 2.0.0 do make release
|
||||||
after_success:
|
after_success:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue