forked from jaegertracing/jaeger-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
115 lines (102 loc) · 2.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
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
110
111
112
113
114
115
language: go
sudo: required
dist: xenial
sevices:
- docker
go:
- 1.12.5
stages:
- name: build
- name: deploy
# only deploy if:
## we are not in a PR
## tag is blank (ie, master or any other branch)
## tag is a release tag (release/v1.6.1, which is the release build)
if: (type != pull_request) AND ((tag IS blank) OR (tag =~ /^release\/v.[\d\.]+(\-.*)?$/))
env:
global:
- CHANGE_MINIKUBE_NONE_USER=true
- MINIKUBE_WANTUPDATENOTIFICATION=false
- MINIKUBE_WANTREPORTERRORPROMPT=false
- MINIKUBE_HOME=$HOME
- CHANGE_MINIKUBE_NONE_USER=true
- KUBECONFIG=$HOME/.kube/config
jobs:
include:
- stage: build
env:
- OPERATOR_VERSION="JOB_${TRAVIS_JOB_NUMBER}"
name: "Build and unit test"
install:
- "travis_retry ./.travis/install.sh"
script:
- "./.travis/script.sh"
after_success:
- "./.travis/after_success.sh"
- stage: build
name: "Run e2e elasticsearch tests"
install:
- "travis_retry make vendor"
- "./.travis/setupMinikube.sh"
script:
- "./.travis/rune2eTests.sh"
env:
- TEST_GROUP=es
- stage: build
name: "Run e2e smoke tests"
install:
- "travis_retry make vendor"
- "./.travis/setupMinikube.sh"
script:
- "./.travis/rune2eTests.sh"
env:
- TEST_GROUP=smoke
- stage: build
name: "Run e2e cassandra tests"
install:
- "travis_retry make vendor"
- "./.travis/setupMinikube.sh"
script:
- "./.travis/rune2eTests.sh"
env:
- TEST_GROUP=cassandra
- stage: build
name: "Run e2e streaming tests"
install:
- "travis_retry make vendor"
- "./.travis/setupMinikube.sh"
script:
- "./.travis/rune2eTests.sh"
env:
- TEST_GROUP=streaming
- stage: build
name: "Run e2e examples tests"
install:
- "travis_retry make vendor"
- "./.travis/setupMinikube.sh"
script:
- "./.travis/rune2eTests.sh"
env:
- TEST_GROUP=examples
- stage: build
name: "Run e2e es-self-provisioned tests"
install:
- "travis_retry make vendor"
- "./.travis/setupOpenShift.sh"
script:
- "./.travis/rune2eTests.sh"
env:
- TEST_GROUP=es-self-provisioned
- stage: deploy
name: "Publish latest image"
env:
- OPERATOR_VERSION="${TRAVIS_BRANCH}"
script:
- "./.travis/publish-images.sh"
- stage: deploy
name: "Release"
env:
- OPERATOR_VERSION="${TRAVIS_BRANCH}"
script:
- "./.travis/release.sh"
if: tag =~ /^release\/v.[\d\.]+(\-.*)?$/