forked from ligato/vpp-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (71 loc) · 1.63 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
dist: xenial
sudo: required
language: go
go:
- "1.12.x"
go_import_path: github.com/ligato/vpp-agent
services:
- docker
git:
depth: 5
submodules: false
cache:
directories:
- ${HOME}/.cache
install: true
stages:
- Check
- Test
- Build
- Integration
jobs:
include:
- stage: Check
language: shell
name: "Check formatting"
addons:
apt:
packages:
- npm
script:
- make yamllint
- make check-links || true
- name: "Go dependency check"
script: make dep-check
- stage: Test
name: "Code linter"
script: make lint
- name: "Unit tests"
before_script:
- go get github.com/mattn/goveralls
script: make test-cover
after_success:
- goveralls -coverprofile=/tmp/coverage.out -service=travis-ci
- stage: Build
script:
- make cmd
- make examples
- stage: Integration
env: VPP_VERSION=1904
script:
- make verify-binapi
- make integration-tests
- env: VPP_VERSION=1908
script:
- make verify-binapi
- make integration-tests
- env: VPP_VERSION=1901
script:
- make verify-binapi
- make integration-tests
notifications:
slack:
rooms:
- ligato:xLH4aTwGx1dexPaloAegQ74O
on_success: change
on_failure: always
template:
- "Build <%{build_url}|#%{build_number}> of *%{repository_slug}* on branch _%{branch}_ in PR: <%{pull_request_url}|#%{pull_request_number}>"
- "> `%{commit_subject}` _by %{author}_ (<%{compare_url}|%{commit}>)"
- "*%{message}* (_%{duration}_)"