Remove redundant build steps

`make install.tools` already installs `gometalinter` (as can be seen in
the logs), so the subsequent `go get` steps are unnecessary.

This change also reorders the build directives according to execution
order: https://docs.travis-ci.com/user/customizing-the-build#The-Build-Lifecycle
and replaces the "before_install" step with an override of the default
"install" procedure (which we were suppressing anyway with install: true)

Signed-off-by: Jonathan Yu <jawnsy@redhat.com>
This commit is contained in:
Jonathan Yu 2016-09-28 12:54:04 -07:00
parent 8d445fc4ca
commit 9bd9a33ca4

View file

@ -8,16 +8,12 @@ sudo: required
services: services:
- docker - docker
install:
- make install.tools
before_script: before_script:
- export PATH=$HOME/gopath/bin:$PATH - export PATH=$HOME/gopath/bin:$PATH
before_install:
- make install.tools
- go get -u github.com/alecthomas/gometalinter
- gometalinter --install --update
install: true
script: script:
- make .gitvalidation - make .gitvalidation
- make lint - make lint