From 2610f630f76b4401969075a32054cda838a0d8f4 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Wed, 27 Feb 2019 20:13:22 +0100 Subject: [PATCH] Add gomod, update travis --- .travis.yml | 16 +++++++++++++--- go.mod | 1 + 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 go.mod diff --git a/.travis.yml b/.travis.yml index 8354953..4cfe98c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,17 +6,27 @@ language: go go: - 1.11.x +env: + global: + - GOTFLAGS="-race" + matrix: + - BUILD_DEPTYPE=gx + - BUILD_DEPTYPE=gomod + + +# disable travis install install: - - make deps + - true script: - bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh) + cache: directories: - $GOPATH/src/gx + - $GOPATH/pkg/mod + - $HOME/.cache/go-build notifications: email: false - -env: GOTFLAGS="-race" diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..4e3c78e --- /dev/null +++ b/go.mod @@ -0,0 +1 @@ +module github.com/libp2p/go-buffer-pool -- GitLab