Browse Source

Update .travis.yml

silenceper 7 năm trước cách đây
mục cha
commit
e386402f01
1 tập tin đã thay đổi với 9 bổ sung1 xóa
  1. 9 1
      .travis.yml

+ 9 - 1
.travis.yml

@@ -1,6 +1,7 @@
 language: go
 language: go
 
 
 go:
 go:
+  - 1.10
   - 1.9
   - 1.9
   - 1.8
   - 1.8
   - 1.7
   - 1.7
@@ -10,5 +11,12 @@ services:
   - memcached
   - memcached
   - redis-server
   - redis-server
 
 
+before_script:
+  - GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
+  - go get github.com/golang/lint/golint
+    
 script:
 script:
-    - go test -v ./...
+  - test -z $(gofmt -s -l $GO_FILES)
+  - go test -v -race ./...
+  - go vet ./...
+  - golint -set_exit_status $(go list ./...)