travis: run gofmt and go vet
This commit is contained in:
		
							parent
							
								
									4464655276
								
							
						
					
					
						commit
						c1116ea506
					
				
							
								
								
									
										6
									
								
								test.sh
								
								
								
								
							
							
						
						
									
										6
									
								
								test.sh
								
								
								
								
							|  | @ -1,5 +1,11 @@ | ||||||
| #!/bin/bash | #!/bin/bash | ||||||
| set -e | set -e | ||||||
| 
 | 
 | ||||||
|  | echo "gofmt" | ||||||
|  | diff -u <(echo -n) <(gofmt -d $(find . -type f -name '*.go' -not -path "./.godeps/*")) | ||||||
|  | echo "go vet" | ||||||
|  | go vet ./... | ||||||
|  | echo "go test" | ||||||
| go test -timeout 60s ./... | go test -timeout 60s ./... | ||||||
|  | echo "go test -race" | ||||||
| GOMAXPROCS=4 go test -timeout 60s -race ./... | GOMAXPROCS=4 go test -timeout 60s -race ./... | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue