2019-06-09 07:24:20 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
2021-06-16 20:19:45 +00:00
|
|
|
# Don't use the go language tag. Install manually to fix wasm.
|
2019-06-09 07:24:20 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- GOTFLAGS="-race"
|
|
|
|
matrix:
|
|
|
|
- BUILD_DEPTYPE=gomod
|
|
|
|
|
|
|
|
|
|
|
|
# disable travis install
|
|
|
|
install:
|
2021-06-16 20:19:45 +00:00
|
|
|
# Manually download and install Go 1.13 instead of using gimme.
|
|
|
|
# It looks like gimme Go causes some errors on go-test for Wasm.
|
|
|
|
- wget -O go.tar.gz https://dl.google.com/go/go1.15.3.linux-amd64.tar.gz
|
|
|
|
- tar -C ~ -xzf go.tar.gz
|
|
|
|
- rm go.tar.gz
|
|
|
|
- export GOROOT=~/go
|
|
|
|
- export PATH=$GOROOT/bin:$PATH
|
|
|
|
- go version
|
|
|
|
- go env
|
2019-06-09 07:24:20 +00:00
|
|
|
|
|
|
|
script:
|
2021-06-16 20:19:45 +00:00
|
|
|
- export GOROOT=~/go
|
|
|
|
- export PATH=$GOROOT/bin:$PATH
|
2019-06-09 07:24:20 +00:00
|
|
|
- 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
|