Use go12 in CI

This commit is contained in:
mhchia 2019-08-28 23:48:25 +08:00
parent b726d7c9da
commit 15f62dff68
No known key found for this signature in database
GPG Key ID: 389EFBEA1362589A
2 changed files with 6 additions and 8 deletions

View File

@ -11,7 +11,13 @@ matrix:
- python: 3.7
dist: xenial
env: TOXENV=py37-interop
sudo: true
before_install:
- wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz
- sudo tar -C /usr/local -xzf $GOPACKAGE
- export GOPATH=$HOME/go
- export GOROOT=/usr/local/go
- export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
- ./install_interop_go_pkgs.sh
install:

View File

@ -1,13 +1,5 @@
#!/bin/bash
which go
if [ $? != 0 ]; then
wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf $GOPACKAGE
export GOPATH=$HOME/go
export GOROOT=/usr/local/go
fi
go version
cd tests/interop/go_pkgs/
go install ./...