From 9ab9172533a8b96f096cfe2c46a6879845874496 Mon Sep 17 00:00:00 2001 From: sergeilem Date: Wed, 6 Mar 2019 23:33:32 +0300 Subject: [PATCH] travis added --- .travis.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..760749f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,35 @@ +language: go + +# Force-enable Go modules. This will be unnecessary when Go 1.12 lands. +env: + - GO111MODULE=on + +# You don't need to test on very old version of the Go compiler. It's the user's +# responsibility to keep their compilers up to date. +go: + - 1.11.x + +# Only clone the most recent commit. +git: + depth: 1 + +# Skip the install step. Don't `go get` dependencies. Only build with the code +# in vendor/ +install: true + +# Don't email me the results of the test runs. +notifications: + email: false + +# Anything in before_script that returns a nonzero exit code will flunk the +# build and immediately stop. It's sorta like having set -e enabled in bash. +# Make sure golangci-lint is vendored. +before_script: + - go install -mod vendor github.com/golangci/golangci-lint/cmd/golangci-lint + +# script always runs to completion (set +e). If we have linter issues AND a +# failing test, we want to see both. Configure golangci-lint with a +# .golangci.yml file at the top level of your repo. +script: + - golangci-lint run # run a bunch of code checkers/linters in parallel + - go test -v -race ./... # Run all the tests with the race detector enabled \ No newline at end of file