Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

[elastic] The initial commit of the travis ci. #27

Merged
merged 1 commit into from
Jul 18, 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
44 changes: 44 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
dist: xenial

language: go

branches:
only:
- master

install:
- git clone https://github.com/elastic/go-langserver $GOPATH/src/golang.org/x/tools
- cd $GOPATH/src/golang.org/x/tools

git:
depth: 1

env:
- GO111MODULE=on GOPROXY=https://proxy.golang.org


before_install:
- go get -u golang.org/x/lint/golint
- go get golang.org/x/sync/errgroup

script:
- set -e;
- make lint
- go test ./internal/lsp
- go install ./cmd/gopls -o go-langserver

matrix:
include:
- name: Unit Tests & Package | Linux, go:stable, gomod=on
os: linux
after_script:
- cd $GOPATH/bin
- curl -O https://dl.google.com/go/go1.12.7.linux-amd64.tar.gz
- tar xvzf go1.12.7.linux-amd64.tar.gz

- name: Unit Tests & Package | OSX, go:stable, gomod=on
os: osx
after_script:
- cd $GOPATH/bin
- curl -O https://dl.google.com/go/go1.12.7.darwin-amd64.tar.gz
- tar xvzf go1.12.7.darwin-amd64.tar.gz