diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..7bfe1e8528 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: go +go: + - 1.16.x +env: + - GO111MODULE=on +script: + - make test TEST_FLAGS="-race -coverprofile=coverage.txt -covermode=atomic" +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/Makefile b/Makefile index 4286844dfc..9915a5c8b4 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,7 @@ test: go mod tidy git diff --exit-code go.mod go.sum go mod verify - go test -v ./... + go test -v ./... ${TEST_FLAGS} clean: rm -rf ${RELEASE_DIR}