This should make gox a little nicer

This commit is contained in:
Edward Muller 2019-10-13 17:02:25 -07:00
parent ad9f41a0cd
commit 08cf62cb80
No known key found for this signature in database
GPG Key ID: FC5833DB021899A5
2 changed files with 2 additions and 7 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
if [[ "$TRAVIS_GO_VERSION" =~ ^1\.12\. ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if [[ "$TRAVIS_GO_VERSION" =~ ^1\.12\. ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
/tmp/gox/gox -build-lib -all $(go env GOPATH)/bin/gox -build-lib
fi fi

View File

@ -3,11 +3,7 @@
set -e set -e
if [[ "$TRAVIS_GO_VERSION" =~ ^1\.12\. ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if [[ "$TRAVIS_GO_VERSION" =~ ^1\.12\. ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
git clone https://github.com/dgsb/gox.git /tmp/gox GO111MODULE=off go get github.com/dgsb/gox
pushd /tmp/gox
git checkout new_master
go build ./
popd
fi fi
if [[ "$GO111MODULE" == "on" ]]; then if [[ "$GO111MODULE" == "on" ]]; then
@ -16,5 +12,4 @@ fi
if [[ "$GO111MODULE" == "off" ]]; then if [[ "$GO111MODULE" == "off" ]]; then
go get github.com/stretchr/testify/assert golang.org/x/sys/unix github.com/konsorten/go-windows-terminal-sequences go get github.com/stretchr/testify/assert golang.org/x/sys/unix github.com/konsorten/go-windows-terminal-sequences
go get github.com/hashicorp/go-version github.com/hashicorp/go-version
fi fi