mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 12:05:21 +08:00
Change TeamCity test matrix and drop appveyor/travis-ci configurations (#2315)
* TeamCity: change test matrix and test scripts Changes test matrix to test: * 1.13 through 1.16 on linux/amd64 * 1.15, 1.16 on windows/amd64 * 1.15 on linux/386 Also includes tests on go-tip for windows/amd64 and linux/amd64 (currently disabled, but can be turned on in a PR). Changes test scripts to automatically select the latest patch version of Go. * CI: remove Travis-CI and Appveyor configuration
This commit is contained in:
committed by
GitHub
parent
25178e265f
commit
715224cea0
@ -3,25 +3,40 @@ set -e
|
||||
set -x
|
||||
|
||||
apt-get -qq update
|
||||
apt-get install -y dwz wget make git gcc curl
|
||||
apt-get install -y dwz wget make git gcc curl jq
|
||||
dwz --version
|
||||
|
||||
if [ "$1" = "golatest" ]; then
|
||||
version=$(curl https://golang.org/VERSION?m=text)
|
||||
else
|
||||
version=$1
|
||||
fi
|
||||
version=$1
|
||||
arch=$2
|
||||
echo "Go $version on $arch"
|
||||
|
||||
export GOROOT=/usr/local/go/"$version"
|
||||
if [ ! -d "$GOROOT" ]; then
|
||||
wget -q https://dl.google.com/go/"${version}".linux-"${arch}".tar.gz
|
||||
mkdir -p /usr/local/go
|
||||
tar -C /usr/local/go -xzf "${version}".linux-"${arch}".tar.gz
|
||||
mv -f /usr/local/go/go "$GOROOT"
|
||||
function getgo {
|
||||
export GOROOT=/usr/local/go/$1
|
||||
if [ ! -d "$GOROOT" ]; then
|
||||
wget -q https://dl.google.com/go/"$1".linux-"${arch}".tar.gz
|
||||
mkdir -p /usr/local/go
|
||||
tar -C /usr/local/go -xzf "$1".linux-"${arch}".tar.gz
|
||||
mv -f /usr/local/go/go "$GOROOT"
|
||||
fi
|
||||
}
|
||||
|
||||
if [ "$version" = "gotip" ]; then
|
||||
exit 0
|
||||
echo Building Go from tip
|
||||
getgo $(curl https://golang.org/VERSION?m=text)
|
||||
export GOROOT_BOOTSTRAP=$GOROOT
|
||||
export GOROOT=/usr/local/go/go-tip
|
||||
git clone https://go.googlesource.com/go /usr/local/go/go-tip
|
||||
cd /usr/local/go/go-tip/src
|
||||
./make.bash
|
||||
cd -
|
||||
else
|
||||
echo Finding latest patch version for $version
|
||||
version=$(curl 'https://golang.org/dl/?mode=json&include=all' | jq '.[].version' --raw-output | egrep ^$version'($|\.|beta|rc)' | head -1)
|
||||
echo "Go $version on $arch"
|
||||
getgo $version
|
||||
fi
|
||||
|
||||
|
||||
GOPATH=$(pwd)/go
|
||||
export GOPATH
|
||||
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
|
||||
@ -31,6 +46,5 @@ uname -a
|
||||
echo "$PATH"
|
||||
echo "$GOROOT"
|
||||
echo "$GOPATH"
|
||||
|
||||
cd delve
|
||||
make test
|
||||
|
||||
Reference in New Issue
Block a user