Fix travis build

This commit is contained in:
Jakub Sztandera 2019-02-27 10:25:34 +01:00
parent fbe5d04bc0
commit 1be2230e6d

View File

@ -1,36 +1,33 @@
os:
- linux
sudo: false
language: go
env:
- IPFS_REUSEPORT=false
go:
- 1.11.x
install: true
env:
global:
- GOTFLAGS="-race"
- IPFS_REUSEPORT=false
matrix:
- BUILD_DEPTYPE=gx
- BUILD_DEPTYPE=gomod
jobs:
include:
- stage: "build and test"
name: "gx"
script:
- make deps
# disable travis install
install:
- true
script:
- bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh)
- name: "go mod"
script:
- export GO111MODULE=on
- make mod_deps
- bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh)
cache:
directories:
- $GOPATH/pkg/mod
- $GOPATH/src/gx
- $GOPATH/pkg/mod
- /home/travis/.cache/go-build
notifications:
email: false