Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Update .travis.yml #2915

Merged
merged 1 commit into from
Dec 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
language: go

dist: bionic
Copy link
Contributor Author

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.


go:
- 1.10.x
- 1.11.x
- 1.12.x
- 1.13.x
- tip

git:
depth: 1
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[[ is a bash best practice.

export DISPLAY=:99.0;
Xvfb :99 &
sleep 3;
Expand All @@ -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
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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
Expand Down