Merge #116: Travis: Fix goxsys error on Go 1.11 and earlier

344672c Travis: Fix goxsys error on Go 1.11 and earlier (JeremyRand)

Pull request description:

ACKs for commit 344672:

Tree-SHA512: 5c2331cd0a092d3aacfe343ac408adc6229b665e9530c285b404a230bfbe17747b72654113ed2b429c1bc7ba5f4ef204c2595a626431d453dbfbff16c8452c8b
pull/97/head
JeremyRand 5 years ago
commit 54d7d303be
No known key found for this signature in database
GPG Key ID: B3F2D165786D6570

@ -34,6 +34,11 @@ install:
- if [[ "$(go version)" =~ go1.11 ]]; then X509_BRANCH=go1.11; fi
- if [[ "$(go version)" =~ go1.12 ]]; then X509_BRANCH=go1.12; fi
- pushd $(go env GOPATH)/src/github.com/namecoin/x509-signature-splice; git checkout $X509_BRANCH; popd
- GOXSYS_BRANCH=master
# goxsys bug for Go 1.11 and earlier: https://github.com/golang/go/issues/34742
- if [[ "$(go version)" =~ go1.[56789] ]]; then GOXSYS_BRANCH=release-branch.go1.13; fi
- if [[ "$(go version)" =~ go1.1[01] ]]; then GOXSYS_BRANCH=release-branch.go1.13; fi
- pushd $(go env GOPATH)/src/golang.org/x/sys; git checkout $GOXSYS_BRANCH; popd
- go generate -v github.com/namecoin/x509-signature-splice/...
- go get -tags "$TAGS" -v -t ./...
- env GOOS=windows GOARCH=amd64 go get -tags "$TAGS" -d -v -t ./...

Loading…
Cancel
Save