Skip to content

Commit

Permalink
Update lint scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Apr 20, 2018
1 parent 7b731c1 commit 182ff2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@ matrix:
fast_finish: true

before_install:
- go get -u github.com/mattn/goveralls
- go get -u github.com/golang/dep/cmd/dep
- make deps

# Build daemon, run tests, and make various code quality checks
script:
- make testenv VPS_OS="$VPS_OS" VPS_VERSION="$VERSION" SSH_PORT=69
- make testdaemon SSH_PORT=69 # Send test daemon to test VPS
- make testdaemon SSH_PORT=69 # Send test daemon to testVPS
- go test -v -race -coverprofile=coverage.out ./... # Execute tests
- goveralls -coverprofile=coverage.out -service=travis-ci -repotoken "$COVERALLS_TOKEN"
- ./bin/gometalinter --vendor ./... # Static code analysis
- docker kill $(docker ps -q) # Remove testvps, etc
- make lint # Static code analysis
- docker kill $(docker ps -q) # Remove testvps, etc

# Push version-tagged Docker image and build platform binaries
before_deploy:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ clean:
find . -type f -name inertia.\* -exec rm {} \;

lint:
./bin/gometalinter --vendor ./...
PATH=$(PATH):./bin bash -c './bin/gometalinter --vendor ./...'

# Run unit test suite
test:
Expand Down

0 comments on commit 182ff2e

Please sign in to comment.