vscode-go/.travis.yml

56 строки
1.9 KiB
YAML
Исходник Обычный вид История

2015-12-15 01:19:44 +03:00
language: go
go:
- 1.7.x
- 1.8.x
Show completion for newly created package. (#1191) * Refactor getNonVendorPackages to getPackages and respect the 1.9 version behavior * Inline the function test arguments building * Test all packages for Go 1.9 use "./...", the lower still remain using the same way * Fix autocomplete un-imported packages: show newly added package * Use spawn to avoid maxBuffer exceeded * Support large output by using spawn * Completions shows result instantly, no longer need to pre-call to goListAll() * Fix lint warning * Expect proper gopkgs binary * Change the gopkgs package * Use spawn instead of execFile to support large output * Use gopkgs from http://github.com/uudashr/gopkgs * Update the go tools in .travis.yml * Fix the gopkgs missing tools detection * Cache the gopkgs tool invocation result * Refresh gopkgs cache * Drop the cache for gopkgs since it already fast enough * Adapt with the changes of gopkgs by using -format * trigger travis build: use array desctructuring assignment * Install libsecret-1-0 * Fix the travis script * Fix the travis script, install libsecret-1-0 * Use sudo apt-get install * apt-get should buy some time * Add go 1.9.x to the .travis.yml * Prompt for missing tools when "gopkgs" not found * Update the comment of goListAll * Revert back the function name "goPackages" to "goNonVendorPackages" * Rename "goListAll" to "getAllPackages" * Use existing getImportablePackages * Missing tool prompt will be handled by function caller * Remove unused import * Handle missing tool when browsing package * Use cache if still used for less than 5s * Ignore the stderr to avoid stuck * Fix lint warning * Prompt to update gopkgs if using old pkgs * Cleanup * Fix tests * Sort pkgs before testing
2017-09-12 10:01:48 +03:00
- 1.9.x
- 1.10.x
- tip
2015-12-15 01:19:44 +03:00
sudo: false
os:
- osx
- linux
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export DISPLAY=:99.0;
2015-12-15 01:19:44 +03:00
sh -e /etc/init.d/xvfb start;
Show completion for newly created package. (#1191) * Refactor getNonVendorPackages to getPackages and respect the 1.9 version behavior * Inline the function test arguments building * Test all packages for Go 1.9 use "./...", the lower still remain using the same way * Fix autocomplete un-imported packages: show newly added package * Use spawn to avoid maxBuffer exceeded * Support large output by using spawn * Completions shows result instantly, no longer need to pre-call to goListAll() * Fix lint warning * Expect proper gopkgs binary * Change the gopkgs package * Use spawn instead of execFile to support large output * Use gopkgs from http://github.com/uudashr/gopkgs * Update the go tools in .travis.yml * Fix the gopkgs missing tools detection * Cache the gopkgs tool invocation result * Refresh gopkgs cache * Drop the cache for gopkgs since it already fast enough * Adapt with the changes of gopkgs by using -format * trigger travis build: use array desctructuring assignment * Install libsecret-1-0 * Fix the travis script * Fix the travis script, install libsecret-1-0 * Use sudo apt-get install * apt-get should buy some time * Add go 1.9.x to the .travis.yml * Prompt for missing tools when "gopkgs" not found * Update the comment of goListAll * Revert back the function name "goPackages" to "goNonVendorPackages" * Rename "goListAll" to "getAllPackages" * Use existing getImportablePackages * Missing tool prompt will be handled by function caller * Remove unused import * Handle missing tool when browsing package * Use cache if still used for less than 5s * Ignore the stderr to avoid stuck * Fix lint warning * Prompt to update gopkgs if using old pkgs * Cleanup * Fix tests * Sort pkgs before testing
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:
- 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
- if [[ "$(go version)" =~ "go version go1.5" ]]; then echo cannot get golint; else go get -u -v github.com/golang/lint/golint; fi
- 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
Show completion for newly created package. (#1191) * Refactor getNonVendorPackages to getPackages and respect the 1.9 version behavior * Inline the function test arguments building * Test all packages for Go 1.9 use "./...", the lower still remain using the same way * Fix autocomplete un-imported packages: show newly added package * Use spawn to avoid maxBuffer exceeded * Support large output by using spawn * Completions shows result instantly, no longer need to pre-call to goListAll() * Fix lint warning * Expect proper gopkgs binary * Change the gopkgs package * Use spawn instead of execFile to support large output * Use gopkgs from http://github.com/uudashr/gopkgs * Update the go tools in .travis.yml * Fix the gopkgs missing tools detection * Cache the gopkgs tool invocation result * Refresh gopkgs cache * Drop the cache for gopkgs since it already fast enough * Adapt with the changes of gopkgs by using -format * trigger travis build: use array desctructuring assignment * Install libsecret-1-0 * Fix the travis script * Fix the travis script, install libsecret-1-0 * Use sudo apt-get install * apt-get should buy some time * Add go 1.9.x to the .travis.yml * Prompt for missing tools when "gopkgs" not found * Update the comment of goListAll * Revert back the function name "goPackages" to "goNonVendorPackages" * Rename "goListAll" to "getAllPackages" * Use existing getImportablePackages * Missing tool prompt will be handled by function caller * Remove unused import * Handle missing tool when browsing package * Use cache if still used for less than 5s * Ignore the stderr to avoid stuck * Fix lint warning * Prompt to update gopkgs if using old pkgs * Cleanup * Fix tests * Sort pkgs before testing
2017-09-12 10:01:48 +03:00
- 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
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
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