From 0eeec1c9a2b5ae1699e189592717bf4c58099331 Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Fri, 21 Aug 2020 15:37:28 -0400 Subject: [PATCH] ci: use standard libp2p travis script --- .travis.yml | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 85549e7..23775ec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,31 @@ +os: + - linux + language: go + go: - - 1.11.x - - 1.12.x - - 1.13.x - - tip -before_install: - - travis_retry go get github.com/mattn/goveralls + - 1.14.x + - 1.15.x + +env: + global: + - GOTFLAGS="-race" + matrix: + - BUILD_DEPTYPE=gomod + + +# disable travis install +install: + - true + script: - - go test -v -covermode=count -coverprofile=coverage.out ./... - - travis_retry $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci + - bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh) + + +cache: + directories: + - $GOPATH/pkg/mod + - $HOME/.cache/go-build + +notifications: + email: false -- GitLab