2019-05-18 11:27:12 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2019-10-14 02:51:57 +03:00
|
|
|
if [[ "$TRAVIS_GO_VERSION" =~ ^1\.12\. ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
2019-10-14 03:02:25 +03:00
|
|
|
GO111MODULE=off go get github.com/dgsb/gox
|
2019-05-18 11:27:12 +03:00
|
|
|
fi
|
2019-10-14 02:56:28 +03:00
|
|
|
|
|
|
|
if [[ "$GO111MODULE" == "on" ]]; then
|
|
|
|
go mod download
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ "$GO111MODULE" == "off" ]]; then
|
|
|
|
go get github.com/stretchr/testify/assert golang.org/x/sys/unix github.com/konsorten/go-windows-terminal-sequences
|
|
|
|
fi
|