Skip to content

Commit b56533c

Browse files
authored
Merge pull request #8 from smacker/sdk_update
Sdk update
2 parents 1aa3f1a + 715c574 commit b56533c

27 files changed

Lines changed: 904 additions & 411 deletions

.travis.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: go
22

33
go:
4-
- "1.10.x"
4+
- '1.10.x'
55

66
stages:
77
- name: test
@@ -10,11 +10,11 @@ stages:
1010

1111
jobs:
1212
include:
13-
- name: "Unit tests"
13+
- name: 'Unit tests'
1414
stage: test
1515
script: make test
1616

17-
- name: "Integration test: simple proxy"
17+
- name: 'Integration test: simple proxy'
1818
install:
1919
- go get -u gopkg.in/alecthomas/gometalinter.v2
2020
- gometalinter.v2 --install
@@ -26,7 +26,7 @@ jobs:
2626
- cat proxy.log
2727
- gometalinter.v2 --disable-all --enable=dupl --enable=gas --enable=gofmt --enable=goimports --enable=lll --enable=misspell ./_fixtures
2828

29-
- name: "Integration test: analyzer server"
29+
- name: 'Integration test: analyzer server'
3030
before_script:
3131
- make build
3232
script:
@@ -37,7 +37,7 @@ jobs:
3737
- cat analyzer.log
3838
- cat ../lookout-install.log
3939

40-
- name: "Generated code"
40+
- name: 'Generated code'
4141
install:
4242
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
4343
script:
@@ -46,12 +46,8 @@ jobs:
4646
- make build
4747
- make no-changes-in-commit
4848

49-
- name: "Push image to Docker Hub"
49+
- name: 'Push image to Docker Hub'
5050
stage: release
5151
script:
5252
- PKG_OS=linux make packages
5353
- DOCKER_PUSH_LATEST=true make docker-push
54-
55-
cache:
56-
directories:
57-
- $HOME/protoc

Gopkg.lock

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
[[constraint]]
4141
name = "github.com/src-d/lookout"
42-
version = "0.1.3"
42+
revision = "14a12e3fb0b2819d5b4145ea9ca039b1da106466"
4343

4444
[[constraint]]
4545
name = "github.com/stretchr/testify"

_tools/install-protoc-maybe.sh

Lines changed: 0 additions & 38 deletions
This file was deleted.

analyzer_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55

66
types "github.com/gogo/protobuf/types"
7-
"github.com/src-d/lookout/pb"
7+
"github.com/src-d/lookout/util/grpchelper"
88
"github.com/stretchr/testify/require"
99
)
1010

@@ -13,33 +13,33 @@ func TestArgsEmpty(t *testing.T) {
1313

1414
inputs := []types.Struct{
1515
types.Struct{},
16-
*pb.ToStruct(map[string]interface{}{
16+
*grpchelper.ToPBStruct(map[string]interface{}{
1717
"linters": []map[string]interface{}{},
1818
}),
19-
*pb.ToStruct(map[string]interface{}{
19+
*grpchelper.ToPBStruct(map[string]interface{}{
2020
"linters": []map[string]interface{}{
2121
{
2222
"name": "unknown",
2323
"maxLen": 120,
2424
},
2525
},
2626
}),
27-
*pb.ToStruct(map[string]interface{}{
27+
*grpchelper.ToPBStruct(map[string]interface{}{
2828
"linters": []map[string]interface{}{
2929
{
3030
"name": "lll",
3131
},
3232
},
3333
}),
34-
*pb.ToStruct(map[string]interface{}{
34+
*grpchelper.ToPBStruct(map[string]interface{}{
3535
"linters": []map[string]interface{}{
3636
{
3737
"name": "lll",
3838
"maxLen": "not a number",
3939
},
4040
},
4141
}),
42-
*pb.ToStruct(map[string]interface{}{
42+
*grpchelper.ToPBStruct(map[string]interface{}{
4343
"linters": []map[string]interface{}{
4444
{
4545
"name": "lll",
@@ -57,7 +57,7 @@ func TestArgsEmpty(t *testing.T) {
5757

5858
func TestArgsCorrect(t *testing.T) {
5959
a := Analyzer{}
60-
require.Equal(t, []string{"--line-length=120"}, a.linterArguments(*pb.ToStruct(map[string]interface{}{
60+
require.Equal(t, []string{"--line-length=120"}, a.linterArguments(*grpchelper.ToPBStruct(map[string]interface{}{
6161
"linters": []map[string]interface{}{
6262
{
6363
"name": "lll",
@@ -66,7 +66,7 @@ func TestArgsCorrect(t *testing.T) {
6666
},
6767
})))
6868

69-
require.Equal(t, []string{"--line-length=120"}, a.linterArguments(*pb.ToStruct(map[string]interface{}{
69+
require.Equal(t, []string{"--line-length=120"}, a.linterArguments(*grpchelper.ToPBStruct(map[string]interface{}{
7070
"linters": []map[string]interface{}{
7171
{
7272
"name": "lll",

vendor/github.com/src-d/lookout/.gitignore

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/src-d/lookout/.helm-staging.yml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/src-d/lookout/.lookout.yml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/src-d/lookout/.travis.yml

Lines changed: 29 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)