2015-12-15 01:19:44 +03:00
|
|
|
language: go
|
|
|
|
|
2019-12-03 22:52:33 +03:00
|
|
|
dist: bionic
|
|
|
|
|
2015-12-15 01:19:44 +03:00
|
|
|
go:
|
2019-03-14 20:18:11 +03:00
|
|
|
- 1.12.x
|
2019-10-20 22:26:32 +03:00
|
|
|
- 1.13.x
|
2020-02-28 16:30:05 +03:00
|
|
|
- 1.14.x
|
2017-03-03 21:32:56 +03:00
|
|
|
- tip
|
2015-12-15 01:19:44 +03:00
|
|
|
|
2019-12-03 22:52:33 +03:00
|
|
|
git:
|
|
|
|
depth: 1
|
|
|
|
|
2018-05-01 01:26:06 +03:00
|
|
|
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:
|
2019-10-07 19:52:13 +03:00
|
|
|
# Call xvfb directly on linux runs and give it time to start
|
2019-12-03 22:52:33 +03:00
|
|
|
- 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 &
|
2019-10-07 19:52:13 +03:00
|
|
|
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.
|
2017-01-05 06:19:09 +03:00
|
|
|
- rm -rf ~/.nvm;
|
2019-03-14 20:18:11 +03:00
|
|
|
# Grab NVM.
|
2017-01-05 06:19:09 +03:00
|
|
|
- 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.
|
2017-01-05 06:19:09 +03:00
|
|
|
- (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
|
2017-03-29 04:07:48 +03:00
|
|
|
- go get -u -v github.com/acroca/go-symbols
|
2016-09-13 09:17:21 +03:00
|
|
|
- go get -u -v github.com/cweill/gotests/...
|
2018-02-19 06:27:02 +03:00
|
|
|
- go get -u -v github.com/davidrjenni/reftools/cmd/fillstruct
|
2019-12-03 22:52:33 +03:00
|
|
|
- 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
|
2019-12-03 22:52:33 +03:00
|
|
|
- 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
|
2016-07-08 10:03:54 +03:00
|
|
|
|
2015-12-15 01:19:44 +03:00
|
|
|
script:
|
2016-02-07 22:23:10 +03:00
|
|
|
- npm run lint
|
2019-02-12 10:19:14 +03:00
|
|
|
- npm run unit-test
|
2015-12-15 01:19:44 +03:00
|
|
|
- npm test --silent
|