travis: run gofmt and go vet
commitc1116ea5068f7afa97c45a20c8c3e98aafd4031d
authorJehiah Czebotar <jehiah@gmail.com>
dateTue 28 Mar 2017, 23:09 (10 years ago)
parent4464655
test.sh+6
@@ -1,5 +1,11 @@
11#!/bin/bash
22set -e
33
4+echo "gofmt"
5+diff -u <(echo -n) <(gofmt -d $(find . -type f -name '*.go' -not -path "./.godeps/*"))
6+echo "go vet"
7+go vet ./...
8+echo "go test"
49go test -timeout 60s ./...
10+echo "go test -race"
511GOMAXPROCS=4 go test -timeout 60s -race ./...