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:
parent
8d445fc4ca
commit
9bd9a33ca4
1 changed files with 3 additions and 7 deletions
10
.travis.yml
10
.travis.yml
|
@ -8,16 +8,12 @@ sudo: required
|
|||
services:
|
||||
- docker
|
||||
|
||||
install:
|
||||
- make install.tools
|
||||
|
||||
before_script:
|
||||
- export PATH=$HOME/gopath/bin:$PATH
|
||||
|
||||
before_install:
|
||||
- make install.tools
|
||||
- go get -u github.com/alecthomas/gometalinter
|
||||
- gometalinter --install --update
|
||||
|
||||
install: true
|
||||
|
||||
script:
|
||||
- make .gitvalidation
|
||||
- make lint
|
||||
|
|
Loading…
Add table
Reference in a new issue