Skip to content

Commit cee368b

Browse files
committed
Fix travis
Signed-off-by: Ondrej Fabry <[email protected]>
1 parent 486325f commit cee368b

File tree

42 files changed

+14017
-29
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+14017
-29
lines changed

.travis.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ language: go
44

55
go_import_path: github.com/contiv/vpp
66

7+
git:
8+
depth: 1
9+
710
go:
8-
- 1.9.x
11+
- 1.10.x
912

1013
cache:
1114
directories:
@@ -15,13 +18,14 @@ env:
1518
- GO_BUILD_TAGS=mockvpp
1619

1720
before_install:
18-
- go get -v github.com/golang/lint/golint
19-
- go get github.com/mattn/goveralls
20-
- sudo apt-get install npm && npm install -g markdown-link-check
21+
- make get-linkcheck
22+
- make get-linters
23+
- make get-covtools
24+
- go get -v github.com/mattn/goveralls
2125

2226
script:
23-
- make check_links || true
24-
- make check_format
27+
- make check-links || true
28+
- make check-format
2529
- make lint
2630
- make
2731
- make test-cover

Gopkg.lock

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

Gopkg.toml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,29 @@ required = [
3333
"github.com/google/cadvisor",
3434
"k8s.io/apiserver/pkg/apis/apiserver",
3535
"github.com/ugorji/go/codec",
36-
"github.com/docker/distribution"
36+
"github.com/docker/distribution",
37+
"github.com/gogo/protobuf/protoc-gen-gogo"
3738
]
3839

3940
[[constraint]]
40-
revision = "0456d22f67865977065886ed58778621b21b7ede"
41+
name = "github.com/ligato/vpp-agent"
42+
revision = "4db11634e69208566fd09839f17077f28fa19ce4"
43+
44+
[[constraint]]
45+
name = "github.com/ligato/cn-infra"
46+
revision = "e5bff3cae460e0e45770b9840ddf863da8540d72"
47+
48+
[[constraint]]
4149
name = "git.fd.io/govpp.git"
50+
revision = "0456d22f67865977065886ed58778621b21b7ede"
4251

4352
[[constraint]]
44-
revision = "b5bfa59ec0adc420475f97f89b58045c721d761c"
4553
name = "github.com/wadey/gocovmerge"
54+
revision = "b5bfa59ec0adc420475f97f89b58045c721d761c"
4655

4756
[[constraint]]
48-
revision = "1c81e2a794c6e26a4c650142ae8893c47f619764"
4957
name = "github.com/opencontainers/runc"
58+
revision = "1c81e2a794c6e26a4c650142ae8893c47f619764"
5059

5160
[[constraint]]
5261
name = "k8s.io/apiserver"
@@ -60,10 +69,6 @@ required = [
6069
name = "github.com/docker/distribution"
6170
revision = "edc3ab29cdff8694dd6feb85cfeb4b5f1b38ed9c"
6271

63-
[[constraint]]
64-
name = "github.com/ligato/cn-infra"
65-
revision = "e5bff3cae460e0e45770b9840ddf863da8540d72"
66-
6772
[[constraint]]
6873
name = "github.com/containernetworking/cni"
6974
version = "0.6.0"
@@ -73,8 +78,8 @@ required = [
7378
version = "0.5.0"
7479

7580
[[constraint]]
76-
branch = "master"
7781
name = "github.com/golang/glog"
82+
branch = "master"
7883

7984
[[constraint]]
8085
name = "github.com/docker/docker"
@@ -93,17 +98,13 @@ required = [
9398
name = "github.com/golang/protobuf"
9499
branch = "master"
95100

96-
[[constraint]]
97-
name = "github.com/ligato/vpp-agent"
98-
revision = "4db11634e69208566fd09839f17077f28fa19ce4"
99-
100101
[[constraint]]
101102
name = "github.com/prometheus/client_golang"
102103
version = "0.8.0"
103104

104105
[[constraint]]
105-
branch = "master"
106106
name = "golang.org/x/net"
107+
branch = "master"
107108

108109
[[constraint]]
109110
name = "google.golang.org/grpc"

Makefile

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ test-cover-xml: test-cover
162162

163163
# Get generator tools
164164
get-generators:
165-
$(if $(shell command -v protoc --gogo_out=. 2> /dev/null),$(info # gogo/protobuf is already installed),$(error gogo/protobuf missing, please install it with go get github.com/gogo/protobuf))
166-
go get -v github.com/golang/protobuf/protoc-gen-go
165+
go install -v ./vendor/github.com/gogo/protobuf/protoc-gen-gogo
167166

168167
# Generate sources
169168
generate: get-generators
@@ -173,6 +172,11 @@ generate: get-generators
173172
cd plugins/ksr && go generate
174173
cd cmd/contiv-stn && go generate
175174

175+
# Get linter tools
176+
get-linters:
177+
@echo " => installing linters"
178+
go get -v github.com/golang/lint/golint
179+
176180
# Run code analysis
177181
lint:
178182
@echo "# running code analysis"
@@ -199,8 +203,8 @@ LINKCHECK := $(shell command -v markdown-link-check 2> /dev/null)
199203
# Get link check tool
200204
get-linkcheck:
201205
ifndef LINKCHECK
202-
sudo apt-get install npm
203-
sudo npm install -g markdown-link-check
206+
sudo apt-get update && sudo apt-get install npm
207+
npm install -g markdown-link-check
204208
endif
205209

206210
# Validate links in markdown files
@@ -215,11 +219,16 @@ ifndef DEP
215219
go get -v github.com/golang/dep/cmd/dep
216220
endif
217221

218-
# Install project's dependencies
222+
# Install Go dependencies
219223
dep-install: get-dep
220-
@echo "# installing project's dependencies"
224+
@echo "# installing Go dependencies"
221225
$(DEP) ensure -v
222226

227+
# Update Go dependencies
228+
dep-update: get-dep
229+
@echo "# updating Go dependencies"
230+
$(DEP) ensure -v -update
231+
223232
describe:
224233
./scripts/contiv_describe.sh
225234

@@ -233,7 +242,7 @@ helm-package:
233242
install clean test test-race \
234243
get-covtools test-cover test-cover-html test-cover-xml \
235244
get-generators generate \
236-
lint metalinter format check-format \
245+
get-linters lint metalinter format check-format \
237246
get-linkcheck check-links \
238247
get-dep dep-install \
239248
describe generate-manifest helm-package

0 commit comments

Comments
 (0)