forked from kubernetes-sigs/cloud-provider-huaweicloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (34 loc) · 734 Bytes
/
.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
language: go
git:
depth: false
sudo: required
dist: xenial
services:
- docker
go:
- 1.13
before_install:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md)|(\.png)|(\.pdf)|(\.html)|^(LICENSE)|^(docs)'
then
echo "Only doc files were updated, skip running the CI."
travis_terminate 0
fi
install: true
jobs:
include:
- stage: "Compile"
name: "Compile"
before_script:
script:
- make huawei-cloud-controller-manager
- stage: "Verify"
name: "Verify gofmt, golint, etc"
before_script:
script:
- make verify
- stage: "Unit test"
name: "go test"
before_script:
script:
- make test