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

Commit ceba44b

Browse files
author
Henry Wong
committed
[elastic] The initial commit of the travis ci.
To Do: - Add the windows support - Add the package script - Package into kibana plugin
1 parent 01477cb commit ceba44b

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.travis.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
dist: xenial
2+
3+
language: go
4+
5+
branches:
6+
only:
7+
- master
8+
9+
install:
10+
- git clone https://github.com/elastic/go-langserver $GOPATH/src/golang.org/x/tools
11+
- cd $GOPATH/src/golang.org/x/tools
12+
13+
git:
14+
depth: 1
15+
16+
env:
17+
- GO111MODULE=on GOPROXY=https://proxy.golang.org
18+
19+
20+
before_install:
21+
- go get -u golang.org/x/lint/golint
22+
- go get golang.org/x/sync/errgroup
23+
24+
script:
25+
- set -e;
26+
- make lint
27+
- go test ./internal/lsp
28+
- go install ./cmd/gopls -o go-langserver
29+
30+
matrix:
31+
include:
32+
- name: Unit Tests & Package | Linux, go:stable, gomod=on
33+
os: linux
34+
after_script:
35+
- cd $GOPATH/bin
36+
- curl -O https://dl.google.com/go/go1.12.7.linux-amd64.tar.gz
37+
- tar xvzf go1.12.7.linux-amd64.tar.gz
38+
39+
- name: Unit Tests & Package | OSX, go:stable, gomod=on
40+
os: osx
41+
after_script:
42+
- cd $GOPATH/bin
43+
- curl -O https://dl.google.com/go/go1.12.7.darwin-amd64.tar.gz
44+
- tar xvzf go1.12.7.darwin-amd64.tar.gz
45+
46+
47+
48+

0 commit comments

Comments
 (0)