diff options
author | Dan Melton <melton.dan@gmail.com> | 2017-11-09 18:46:03 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-09 18:46:03 +0800 |
commit | d7f2462e8f242887846cbff760790fa42c28de65 (patch) | |
tree | a8a8e4748f2bac17ca36f66f1cbb2198103742d0 /.travis.yml | |
parent | 4fe30bf5ade8849bb3971a0edad95d17d99e8778 (diff) | |
download | dexon-d7f2462e8f242887846cbff760790fa42c28de65.tar dexon-d7f2462e8f242887846cbff760790fa42c28de65.tar.gz dexon-d7f2462e8f242887846cbff760790fa42c28de65.tar.bz2 dexon-d7f2462e8f242887846cbff760790fa42c28de65.tar.lz dexon-d7f2462e8f242887846cbff760790fa42c28de65.tar.xz dexon-d7f2462e8f242887846cbff760790fa42c28de65.tar.zst dexon-d7f2462e8f242887846cbff760790fa42c28de65.zip |
build: add Travis job to lint Go code #15372 (#15416)
* build: [finishes #15372] implements generalized linter and travis job
* .travis, build: minor polishes, disable deadcode
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 8a7f65e3d..fe3b04cd2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,7 @@ matrix: - sudo chmod 666 /dev/fuse - sudo chown root:$USER /etc/fuse.conf - go run build/ci.go install - - go run build/ci.go test -coverage -misspell + - go run build/ci.go test -coverage - os: osx go: 1.9.x @@ -48,7 +48,21 @@ matrix: - brew install caskroom/cask/brew-cask - brew cask install osxfuse - go run build/ci.go install - - go run build/ci.go test -coverage -misspell + - go run build/ci.go test -coverage + + # This builder only tests code linters on latest version of Go + - os: linux + dist: trusty + sudo: required + go: 1.9.x + env: + - lint + script: + - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install fuse + - sudo modprobe fuse + - sudo chmod 666 /dev/fuse + - sudo chown root:$USER /etc/fuse.conf + - go run build/ci.go lint # This builder does the Ubuntu PPA and Linux Azure uploads - os: linux |