Browse Source

Travis (#103)

* Added .travis.yml
Dmitry Panov 6 years ago
parent
commit
b400891f43
1 changed files with 13 additions and 0 deletions
  1. 13 0
      .travis.yml

+ 13 - 0
.travis.yml

@@ -0,0 +1,13 @@
+language: go
+go:
+  - 1.x
+
+before_install:
+  # use local source tree when testing forks
+  - mkdir -p $GOPATH/src/github.com/dop251/
+  - ln -s $TRAVIS_BUILD_DIR $GOPATH/src/github.com/dop251/ || true
+
+script:
+  - diff -u <(echo -n) <(gofmt -d .)
+  - go vet .
+  - go test -short -race ./...