From a18642b0dfd8a86009b617f7d37d61f87dfa8646 Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Mon, 24 Jun 2019 01:06:38 -0700 Subject: [PATCH] Re-arrange travis build. --- .travis.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index cd34e7b0..5cbb840d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ go: - 1.12.x services: - docker -before_install: +install: - mkdir -p $GOPATH/bin # 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 @@ -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 -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest - rvm install 2.0.0 -install: - rvm 2.0.0 do gem install --no-document fpm - make docker script: # Test built docker image. -- docker run -d --name unifi-poller golift/unifi-poller | tee docker_id - # 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 $(&1 | grep -Eq "Loading Configuration File[:] /etc/unifi-poller/up.conf" +- docker run golift/unifi-poller 2>&1 | grep -Eq "Loading Configuration File[:] /etc/unifi-poller/up.conf" # test and build everything - rvm 2.0.0 do make release after_success: