Only do the golang voodoo on Linux

This commit is contained in:
LiteSpeed Tech 2019-10-08 17:02:40 -04:00 committed by GitHub
parent 59d78e047e
commit 45f0b12684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -19,13 +19,13 @@ matrix:
os: osx
sudo: false
before_install:
- sudo add-apt-repository -y ppa:longsleep/golang-backports
- sudo apt-get update
- sudo apt-get install golang-1.13-go
- [ $TRAVIS_OS_NAME = linux ] && sudo add-apt-repository -y ppa:longsleep/golang-backports
- [ $TRAVIS_OS_NAME = linux ] && sudo apt-get update
- [ $TRAVIS_OS_NAME = linux ] && sudo apt-get install golang-1.13-go
install:
- export PATH=/usr/lib/go-1.13/bin:$PATH
- export GOPATH=/usr/lib/go-1.13:$GOPATH
- export GOROOT=/usr/lib/go-1.13
- [ $TRAVIS_OS_NAME = linux ] && export PATH=/usr/lib/go-1.13/bin:$PATH
- [ $TRAVIS_OS_NAME = linux ] && export GOPATH=/usr/lib/go-1.13:$GOPATH
- [ $TRAVIS_OS_NAME = linux ] && export GOROOT=/usr/lib/go-1.13
before_script:
- git clone https://boringssl.googlesource.com/boringssl
- cd boringssl