vscode-go/.travis.yml

63 строки
1.6 KiB
YAML
Исходник Постоянная ссылка Обычный вид История

2015-12-15 01:19:44 +03:00
language: go
dist: bionic
2015-12-15 01:19:44 +03:00
go:
2019-03-14 20:18:11 +03:00
- 1.12.x
- 1.13.x
- 1.14.x
- tip
2015-12-15 01:19:44 +03:00
git:
depth: 1
matrix:
allow_failures:
- go: tip
2015-12-15 01:19:44 +03:00
os:
- osx
2020-03-24 09:24:34 +03:00
- linux
2015-12-15 01:19:44 +03:00
before_install:
# Call xvfb directly on linux runs and give it time to start
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then
2019-03-14 20:18:11 +03:00
export DISPLAY=:99.0;
2020-03-24 09:24:34 +03:00
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sleep 3;
2019-03-14 20:18:11 +03:00
sudo apt-get update && sudo apt-get install -y libsecret-1-0;
2015-12-15 01:19:44 +03:00
fi
install:
2020-03-24 09:24:34 +03:00
- TRAVIS_NODE_VERSION="8";
2019-03-14 20:18:11 +03:00
# Clear out whatever version of NVM Travis has as it is old.
- rm -rf ~/.nvm;
2019-03-14 20:18:11 +03:00
# Grab NVM.
- git clone https://github.com/creationix/nvm.git ~/.nvm;
2019-03-14 20:18:11 +03:00
# Checkout the latest stable tag.
# Note that you can just hardcode a preferred version here.
- (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`);
2019-03-14 20:18:11 +03:00
# Install the desired version of Node
- source ~/.nvm/nvm.sh;
- nvm install $TRAVIS_NODE_VERSION;
2015-12-15 01:19:44 +03:00
- npm install
- npm run vscode:prepublish
- go get -u -v github.com/acroca/go-symbols
- go get -u -v github.com/cweill/gotests/...
- go get -u -v github.com/davidrjenni/reftools/cmd/fillstruct
- go get -u -v github.com/haya14busa/goplay/cmd/goplay
- go get -u -v github.com/mdempsky/gocode
- go get -u -v github.com/ramya-rao-a/go-outline
- go get -u -v github.com/rogpeppe/godef
- go get -u -v github.com/sqs/goreturns
2020-03-24 09:24:34 +03:00
- go get -u -v github.com/uudashr/gopkgs/v2/cmd/gopkgs
- go get -u -v github.com/zmb3/gogetdoc
- go get -u -v golang.org/x/lint/golint
- go get -u -v golang.org/x/tools/cmd/gorename
2020-04-27 11:14:02 +03:00
- GO111MODULE=on go get golang.org/x/tools/gopls
2015-12-15 01:19:44 +03:00
script:
2016-02-07 22:23:10 +03:00
- npm run lint
- npm run unit-test
2015-12-15 01:19:44 +03:00
- npm test --silent