-
Notifications
You must be signed in to change notification settings - Fork 645
Update .travis.yml #2915
Update .travis.yml #2915
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
language: go | ||
|
||
dist: bionic | ||
|
||
go: | ||
- 1.10.x | ||
- 1.11.x | ||
- 1.12.x | ||
- 1.13.x | ||
- tip | ||
|
||
git: | ||
depth: 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only clone the most recent commit. This saves a few seconds of CI time. |
||
|
||
matrix: | ||
allow_failures: | ||
- go: tip | ||
|
||
sudo: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This used to be the way to specify that you want to run in a container, but this has been deprecated. |
||
|
||
os: | ||
- osx | ||
- linux | ||
|
||
before_install: | ||
# Call xvfb directly on linux runs and give it time to start | ||
- if [ $TRAVIS_OS_NAME == "linux" ]; then | ||
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
export DISPLAY=:99.0; | ||
Xvfb :99 & | ||
sleep 3; | ||
|
@@ -40,18 +43,18 @@ install: | |
- nvm install $TRAVIS_NODE_VERSION; | ||
- npm install | ||
- npm run vscode:prepublish | ||
- if [[ "$(go version)" =~ "go version go1.8" ]]; then go get -u -v github.com/nsf/gocode; else go get -u -v github.com/mdempsky/gocode; fi | ||
- go get -u -v github.com/rogpeppe/godef | ||
- if [[ "$(go version)" =~ "go version go1.8" ]]; then echo skipping gogetdoc; else go get -u -v github.com/zmb3/gogetdoc; fi | ||
- if [[ "$(go version)" =~ "go version go1.8" ]]; then echo skipping golint; else go get -u -v golang.org/x/lint/golint; fi | ||
- go get -u -v github.com/ramya-rao-a/go-outline | ||
- go get -u -v github.com/sqs/goreturns | ||
- go get -u -v golang.org/x/tools/cmd/gorename | ||
- go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs | ||
- go get -u -v github.com/acroca/go-symbols | ||
- go get -u -v github.com/cweill/gotests/... | ||
- go get -u -v github.com/haya14busa/goplay/cmd/goplay | ||
- 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 | ||
- go get -u -v github.com/uudashr/gopkgs/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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I removed the checks for Go 1.8, which we're not testing anymore. I also sorted this list. |
||
|
||
script: | ||
- npm run lint | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run on an Ubuntu 18.04 VM. This is the latest Ubuntu currently offered by Travis.