forked from Kong/kubernetes-ingress-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (55 loc) · 1.39 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
dist: trusty
sudo: required
services:
- docker
language: go
notifications:
email:
on_failure: never
on_success: never
go:
- "1.11"
go_import_path: github.com/kong/kubernetes-ingress-controller
# New secure variables can be added using travis encrypt -r kong/ingress-controller --add K=V
env:
global:
- CHANGE_MINIKUBE_NONE_USER=true
- KUBERNETES_VERSION=v1.9.4
- DOCKER=docker
jobs:
include:
- stage: Static Check
script:
- go get golang.org/x/lint/golint
- diff -u <(echo -n) <(gofmt -d -s .)
- go tool vet .
- golint -set_exit_status .
- make deps
- make verify-all
- stage: Coverage
before_script:
# start minikube
- test/e2e/up.sh
script:
- if ! go get github.com/jteeuwen/go-bindata/...; then github.com/jteeuwen/go-bindata/...;fi
- kubectl create -f deploy/manifests/custom-types.yaml
- make deps
- make cover
# - stage: e2e
# before_script:
# - if ! go get github.com/jteeuwen/go-bindata/...; then github.com/jteeuwen/go-bindata/...;fi
# - make e2e-image
# - test/e2e/up.sh
# - test/e2e/wait-for-kong.sh
# script:
# - make e2e-test
- stage: Unit Test
before_script:
- make deps
script:
- make test
# split builds to avoid job timeouts
- stage: publish amd64
if: type = api AND branch = master AND repo = kong/ingress-controller
script:
- .travis/publish.sh amd64