From b5f14795486a77ae4c5526f989e6b7bb9c48a12e Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Tue, 26 Feb 2019 18:50:55 +0100 Subject: [PATCH] Update travis config --- .travis.yml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8f187a8..18f4287 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,27 +1,32 @@ os: - linux - - osx language: go go: - - 1.10.x + - 1.11.x -install: true +env: + global: + - GOTFLAGS="-race" + matrix: + - BUILD_DEPTYPE=gx + - BUILD_DEPTYPE=gomod -before_install: - - make deps + +# disable travis install +install: + - true script: - - go vet - - go test -race -coverprofile=coverage.txt -covermode=atomic + - bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh) -after_success: - - bash <(curl -s https://codecov.io/bash) cache: - directories: - - $GOPATH/src/gx + directories: + - $GOPATH/src/gx + - $GOPATH/pkg/mod + - /home/travis/.cache/go-build notifications: email: false