forked from ligato/vpp-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
109 lines (97 loc) · 2.67 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
os: linux
dist: xenial
sudo: required
language: go
go:
- 1.x
go_import_path: go.ligato.io/vpp-agent/v3
services:
- docker
git:
depth: 5
submodules: false
cache:
directories:
- ${HOME}/.cache
- ${HOME}/gopath/pkg/mod
install: true
stages:
- Test
- Build&Test
- Integration
- name: E2E
if: ( type = push AND branch IN (master, dev) ) OR ( type IN (cron, api) ) OR ( commit_message =~ /^(test-e2e)/ )
jobs:
include:
- stage: Build&Test
name: "Build"
script:
- make cmd
- make examples
- name: "Code linter"
script: make lint || true
- 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
- bash <(curl -s https://codecov.io/bash) -f /tmp/coverage.out -F unittests
- env: VPP_VERSION=2001
script:
- make verify-binapi
- make integration-tests
- env: VPP_VERSION=2005
script:
- make verify-binapi
- make integration-tests
- env: VPP_VERSION=2009
script:
- make verify-binapi
- make integration-tests
- env: VPP_VERSION=2101
script:
- make verify-binapi
- make integration-tests
- env: VPP_VERSION=2106
script:
- make verify-binapi
- make integration-tests
- env: VPP_VERSION=2001
script:
- make e2e-tests-cover
after_success:
- bash <(curl -s https://codecov.io/bash) -f /tmp/e2e-cov.out -F e2e
- env: VPP_VERSION=2005
script:
- make e2e-tests-cover
after_success:
- bash <(curl -s https://codecov.io/bash) -f /tmp/e2e-cov.out -F e2e
- env: VPP_VERSION=2009
script:
- make e2e-tests-cover
after_success:
- bash <(curl -s https://codecov.io/bash) -f /tmp/e2e-cov.out -F e2e
- env: VPP_VERSION=2101
script:
- make e2e-tests-cover
after_success:
- bash <(curl -s https://codecov.io/bash) -f /tmp/e2e-cov.out -F e2e
- env: VPP_VERSION=2106
script:
- make e2e-tests-cover
after_success:
- bash <(curl -s https://codecov.io/bash) -f /tmp/e2e-cov.out -F e2e
# allow_failures:
# - env: VPP_VERSION=2009
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}_)"