Unverified Commit bda3b040 authored by Raúl Kripalani's avatar Raúl Kripalani Committed by GitHub

Merge pull request #29 from libp2p/fix-build

fix CI after deprecating gx
parents 725dc97d 60cd2f48
Pipeline #645 failed with stages
in 0 seconds
......@@ -7,23 +7,17 @@ go:
# setting the GOARCH directly doesn't work, since the value will be overwritten later
# so set it to a temporary environment variable first
env:
- TRAVIS_GOARCH=amd64 BUILDMODE=gx
- TRAVIS_GOARCH=386 BUILDMODE=gx
- TRAVIS_GOARCH=amd64 BUILDMODE=gomod
- TRAVIS_GOARCH=386 BUILDMODE=gomod
- TRAVIS_GOARCH=amd64
- TRAVIS_GOARCH=386
# second part of the GOARCH workaround
# now actually set the GOARCH env variable to the value of the temporary variable set earlier
before_install:
- |
if [ ${BUILDMODE} == "gx" ]; then
make deps;
fi
- |
if [ ${BUILDMODE} == "gomod" ]; then
export GO111MODULE=on;
make testutils;
fi
export GO111MODULE=on;
go get golang.org/x/tools/cmd/cover;
go get github.com/onsi/ginkgo/ginkgo;
go get github.com/onsi/gomega;
- export GOARCH=$TRAVIS_GOARCH
- go env
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment