2015-12-15 01:19:44 +03:00
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
2017-03-03 21:32:56 +03:00
|
|
|
- 1.7.x
|
|
|
|
- 1.8.x
|
2017-09-12 10:01:48 +03:00
|
|
|
- 1.9.x
|
2018-02-28 19:50:06 +03:00
|
|
|
- 1.10.x
|
2017-03-03 21:32:56 +03:00
|
|
|
- tip
|
2015-12-15 01:19:44 +03:00
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
os:
|
|
|
|
- osx
|
|
|
|
- linux
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- if [ $TRAVIS_OS_NAME == "linux" ]; then
|
2018-02-20 09:55:39 +03:00
|
|
|
export DISPLAY=:99.0;
|
2015-12-15 01:19:44 +03:00
|
|
|
sh -e /etc/init.d/xvfb start;
|
2017-09-12 10:01:48 +03:00
|
|
|
sudo apt-get update && sudo apt-get install -y libsecret-1-0;
|
2015-12-15 01:19:44 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
install:
|
2017-01-05 06:19:09 +03:00
|
|
|
- TRAVIS_NODE_VERSION="6";
|
|
|
|
# Clear out whatever version of NVM Travis has as it is old.
|
|
|
|
- rm -rf ~/.nvm;
|
|
|
|
# Grab NVM.
|
|
|
|
- git clone https://github.com/creationix/nvm.git ~/.nvm;
|
|
|
|
# Checkout the latest stable tag.
|
|
|
|
# Note that you can just hardcode a preferred version here.
|
|
|
|
- (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`);
|
|
|
|
# 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/nsf/gocode
|
2016-11-17 21:02:21 +03:00
|
|
|
- go get -u -v github.com/rogpeppe/godef
|
|
|
|
- if [[ "$(go version)" =~ "go version go1.5" ]]; then echo hello; else go get -u -v github.com/zmb3/gogetdoc; fi
|
2016-10-06 01:38:31 +03:00
|
|
|
- if [[ "$(go version)" =~ "go version go1.5" ]]; then echo cannot get golint; else go get -u -v github.com/golang/lint/golint; fi
|
2017-04-18 01:54:07 +03:00
|
|
|
- go get -u -v github.com/ramya-rao-a/go-outline
|
2018-03-04 07:06:59 +03:00
|
|
|
- go get -u -v github.com/sqs/goreturns
|
2015-12-15 01:19:44 +03:00
|
|
|
- go get -u -v golang.org/x/tools/cmd/gorename
|
2017-09-12 10:01:48 +03:00
|
|
|
- go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs
|
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/...
|
2017-11-07 03:40:52 +03:00
|
|
|
- go get -u -v github.com/haya14busa/goplay/cmd/goplay
|
2018-02-19 06:27:02 +03:00
|
|
|
- go get -u -v github.com/davidrjenni/reftools/cmd/fillstruct
|
2016-11-08 12:19:25 +03:00
|
|
|
- GO15VENDOREXPERIMENT=1
|
2017-11-25 23:05:32 +03:00
|
|
|
- if [[ "$(go version)" =~ "go version go1.5" ]]; then echo skipping gometalinter; else go get -u -v github.com/alecthomas/gometalinter; fi
|
2016-11-08 12:19:25 +03:00
|
|
|
- if [[ "$(go version)" =~ "go version go1.5" ]]; then echo skipping gometalinter; else gometalinter --install; fi
|
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
|
2015-12-15 01:19:44 +03:00
|
|
|
- npm test --silent
|