forked from thelastpickle/cassandra-reaper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
240 lines (239 loc) · 11.2 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
# Copyright 2014-2016 Spotify AB
# Copyright 2016-2018 The Last Pickle Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
sudo: required
language: java
addons:
postgresql: "9.4"
jdk:
- oraclejdk8
branches:
except:
- "/^untagged-.*$/"
- "/^master-snapshot.*$/"
env:
global:
- LOCAL_JMX=no
- TEST=""
- secure: YEMudC4in6wjIS1km11AkSL1XbKwoWyqzx7vB3i9rdfNNEnJfTx9AdFEZM5h15rzH7raCJ/3/Y9LKXMyXB0wntyk+r6OEt79YaXOYUrlZT8/knGmEBddafEm7ZoUr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0freOqEKx2A2VbG0bvUn2N9tflk8Glc8Fe86TfeloEWOSx5VUg+w2ubKuPBoxYE/G/5hX9x7Bm1M8r54vCVCvLGeRPhqDwx89ddWMpIHBb9jZi2zZ0GDb+0u013wz4fiEYxQETw0Uk2zKoIZVfSllVXezDEeR3KrxpUgDbYjQLz8qN9kc70c=
- secure: "XMbKIFr2v18e6g4777Mohi1bLxJSlu7vaC63T/9d7aV/X5oWQXDead/seJWj2yt6oGhitWR4e2imBJnXoz7nWYE+bkOrJ4UyYBESiMDN7SXo2fYK7bj7Z07hbwmsI+98+eJshFNE821bVrCmzTs6TgpU5yRMrcbxyAzi7DYOPzDPASo5K1xTLfkeUt/MbpFDTi+M/8YnHcH4UmMk095POR2AnyVT8ixAn+7mgU/v2nPgsERPdNydfSFFpiByvsyzvYGQuosdmfKvJ4fxvkPWO77KpgbJRBQ/bPgOuqFDDY8N1oA5Ndf4nGH84fVT97XjNSOCVHchJjqVg1gOm5eOH4SVi660CMy4OdD1IkDl2IMqcFCydLfCsvsknd3LN0F/QLbeV9TPUjAnlK2rKekzH9Bwa/UKSJGVaFhddzDO7h59NPxOZ05HErpWnU1Vw1IhHoGmRjpPr0jUjY/zIGaDhUoFAhq2BdqSSdTVMl4bBfudTt7N7+G7Osfq0Z7IYyOS6Z3uwIDPS9hGSUYXygYOhYVQ/BSKInJ4UgUTICxmmYtMSHzfeypteiKFhQMzv94DILj+cfUNIZQw6kkzkDCa0DluL4d4DcvIyHgGqSan3WeZd1kj6qwiJoDm2bcKRrEd9rPIVFX2vdNq1lQFQtmoY1JeNcyQPVG3CZRBm0UsjYQ="
stages:
- Integration Tests
- Distributed Reaper Integration Tests
- Flapping Distributed Reaper Integration Tests
- name: Upgrade Integration Tests
#if: branch = master OR env(TRAVIS_TAG) IS present
- Docker
- name: Deploy
if: branch = master OR tag IS present
jobs:
fast_finish: true
allow_failures:
- env: TEST_TYPE=docker
include:
- stage: Integration Tests
name: Memory, H2 and Postgresql reaping Cassandra 1.2.19
env: TEST_TYPE=ccm CASSANDRA_VERSION=1.2.19 CUCUMBER_OPTIONS="--tags ~@cassandra_2_1_onwards"
- stage: Integration Tests
name: Memory, H2 and Postgresql reaping Cassandra 2.0.17
env: TEST_TYPE=ccm CASSANDRA_VERSION=2.0.17 CUCUMBER_OPTIONS="--tags ~@cassandra_2_1_onwards"
- stage: Integration Tests
name: Memory, H2 and Postgresql reaping Cassandra 2.1.20
env: TEST_TYPE=ccm CASSANDRA_VERSION=2.1.20
- stage: Integration Tests
name: Memory, H2 and Postgresql reaping Cassandra 2.2.13
env: TEST_TYPE=ccm CASSANDRA_VERSION=2.2.13
- stage: Integration Tests
name: Memory, H2 and Postgresql reaping Cassandra 3.0.17
env: TEST_TYPE=ccm CASSANDRA_VERSION=3.0.17
- stage: Integration Tests
name: Memory, H2 and Postgresql reaping Cassandra 3.11.4
env: TEST_TYPE=ccm CASSANDRA_VERSION=3.11.4
- stage: Integration Tests
name: Memory, H2 and Postgresql reaping Cassandra 4.0
env: TEST_TYPE=ccm CASSANDRA_VERSION=github:apache/trunk
- stage: Integration Tests
name: Cassandra 2.1.20
env: TEST_TYPE=ccm CASSANDRA_VERSION=2.1.20 GRIM_MIN=1 GRIM_MAX=1
- stage: Integration Tests
name: Cassandra 2.2.13
env: TEST_TYPE=ccm CASSANDRA_VERSION=2.2.13 GRIM_MIN=1 GRIM_MAX=1
- stage: Integration Tests
name: Cassandra 3.0.17
env: TEST_TYPE=ccm CASSANDRA_VERSION=3.0.17 GRIM_MIN=1 GRIM_MAX=1
- stage: Integration Tests
name: Cassandra 3.11.3
env: TEST_TYPE=ccm CASSANDRA_VERSION=3.11.3 GRIM_MIN=1 GRIM_MAX=1
- stage: Integration Tests
name: Cassandra 4.0
env: TEST_TYPE=ccm CASSANDRA_VERSION=github:apache/trunk GRIM_MIN=1 GRIM_MAX=1
- stage: Distributed Reaper Integration Tests
name: Two Reapers on Cassandra 2.1.20
env: TEST_TYPE=ccm CASSANDRA_VERSION=2.1.20 GRIM_MIN=2 GRIM_MAX=2
- stage: Distributed Reaper Integration Tests
name: Two Reapers on Cassandra 2.2.13
env: TEST_TYPE=ccm CASSANDRA_VERSION=2.2.13 GRIM_MIN=2 GRIM_MAX=2
- stage: Distributed Reaper Integration Tests
name: Two Reapers on Cassandra 3.0.17
env: TEST_TYPE=ccm CASSANDRA_VERSION=3.0.17 GRIM_MIN=2 GRIM_MAX=2
- stage: Distributed Reaper Integration Tests
name: Two Reapers on Cassandra 3.11.3
env: TEST_TYPE=ccm CASSANDRA_VERSION=3.11.3 GRIM_MIN=2 GRIM_MAX=2
- stage: Distributed Reaper Integration Tests
name: Two Reapers on Cassandra 4.0
env: TEST_TYPE=ccm CASSANDRA_VERSION=github:apache/trunk GRIM_MIN=2 GRIM_MAX=2
- stage: Flapping Distributed Reaper Integration Tests
name: Four Flapping Reaper on Cassandra 2.1.20
env: TEST_TYPE=ccm CASSANDRA_VERSION=2.1.20 GRIM_MIN=2 GRIM_MAX=4
- stage: Flapping Distributed Reaper Integration Tests
name: Four Flapping Reaper on Cassandra 2.2.13
env: TEST_TYPE=ccm CASSANDRA_VERSION=2.2.13 GRIM_MIN=2 GRIM_MAX=4
- stage: Flapping Distributed Reaper Integration Tests
name: Four Flapping Reaper on Cassandra 3.0.17
env: TEST_TYPE=ccm CASSANDRA_VERSION=3.0.17 GRIM_MIN=2 GRIM_MAX=4
- stage: Flapping Distributed Reaper Integration Tests
name: Four Flapping Reaper on Cassandra 3.11.3
env: TEST_TYPE=ccm CASSANDRA_VERSION=3.11.3 GRIM_MIN=2 GRIM_MAX=4
- stage: Flapping Distributed Reaper Integration Tests
name: Four Flapping Reaper on Cassandra 4.0
env: TEST_TYPE=ccm CASSANDRA_VERSION=github:apache/trunk GRIM_MIN=2 GRIM_MAX=4
# Upgrade Integration Tests are broken due to classloading issues around org.glassfish.jersey.internal.spi.AutoDiscoverable
# - stage: Upgrade Integration Tests
# name: Upgrading Reaper on Cassandra 2.1.20 (all_nodes_reachable)
# env: TEST_TYPE=upgrade CASSANDRA_VERSION=2.1.20 CO="-t @all_nodes_reachable"
# - stage: Upgrade Integration Tests
# name: Upgrading Reaper on Cassandra 2.1.20
# env: TEST_TYPE=upgrade CASSANDRA_VERSION=2.1.20 CO="-t ~@all_nodes_reachable"
# - stage: Upgrade Integration Tests
# name: Upgrading Reaper on Cassandra 2.2.13 (all_nodes_reachable)
# env: TEST_TYPE=upgrade CASSANDRA_VERSION=2.2.13 CO="-t @all_nodes_reachable"
# - stage: Upgrade Integration Tests
# name: Upgrading Reaper on Cassandra 2.2.13
# env: TEST_TYPE=upgrade CASSANDRA_VERSION=2.2.13 CO="-t ~@all_nodes_reachable"
# - stage: Upgrade Integration Tests
# name: Upgrading Reaper on Cassandra 3.0.17 (all_nodes_reachable)
# env: TEST_TYPE=upgrade CASSANDRA_VERSION=3.0.17 CO="-t @all_nodes_reachable"
# - stage: Upgrade Integration Tests
# name: Upgrading Reaper on Cassandra 3.0.17
# env: TEST_TYPE=upgrade CASSANDRA_VERSION=3.0.17 CO="-t ~@all_nodes_reachable"
# - stage: Upgrade Integration Tests
# name: Upgrading Reaper on Cassandra 3.11.3 (all_nodes_reachable)
# env: TEST_TYPE=upgrade CASSANDRA_VERSION=3.11.3 CO="-t @all_nodes_reachable"
# - stage: Upgrade Integration Tests
# name: Upgrading Reaper on Cassandra 3.11.3
# env: TEST_TYPE=upgrade CASSANDRA_VERSION=3.11.3 CO="-t ~@all_nodes_reachable"
# - stage: Upgrade Integration Tests
# name: Upgrading Reaper on Cassandra 4.0 (all_nodes_reachable)
# env: TEST_TYPE=upgrade CASSANDRA_VERSION=github:apache/trunk CO="-t @all_nodes_reachable"
# - stage: Upgrade Integration Tests
# name: Upgrading Reaper on Cassandra 4.0
# env: TEST_TYPE=upgrade CASSANDRA_VERSION=github:apache/trunk CO="-t ~@all_nodes_reachable"
- stage: Docker
env: TEST_TYPE=docker
- stage: Deploy
name: Deploy
env: TEST_TYPE=deploy
after_success: "./src/ci/after_success.sh"
before_deploy: "./src/ci/before_deploy.sh"
deploy:
- provider: releases
api_key: "$GITHUB_TOKEN"
file_glob: true
file:
- src/packages/cassandra-reaper-${TRAVIS_TAG}-release.tar.gz
- src/packages/reaper-*-1.x86_64.rpm
- src/packages/reaper_*_amd64.deb
skip_cleanup: true
on:
tags: true
- provider: bintray
file: src/ci/descriptor-rpm-beta.json
user: adejanovski
key: "$BINTRAY_API_KEY"
dry-run: false
skip_cleanup: true
on:
branch: master
- provider: bintray
file: src/ci/descriptor-deb-beta.json
user: adejanovski
key: "$BINTRAY_API_KEY"
dry-run: false
skip_cleanup: true
on:
branch: master
- provider: bintray
file: src/ci/descriptor-tarball-beta.json
user: adejanovski
key: "$BINTRAY_API_KEY"
dry-run: false
skip_cleanup: true
on:
branch: master
- provider: bintray
file: src/ci/descriptor-maven-snapshot.json
user: adejanovski
key: "$BINTRAY_API_KEY"
dry-run: false
skip_cleanup: true
on:
branch: master
- provider: bintray
file: src/ci/descriptor-rpm.json
user: adejanovski
key: "$BINTRAY_API_KEY"
dry-run: false
skip_cleanup: true
on:
tags: true
- provider: bintray
file: src/ci/descriptor-deb.json
user: adejanovski
key: "$BINTRAY_API_KEY"
dry-run: false
skip_cleanup: true
on:
tags: true
- provider: bintray
file: src/ci/descriptor-tarball.json
user: adejanovski
key: "$BINTRAY_API_KEY"
dry-run: false
skip_cleanup: true
on:
tags: true
- provider: bintray
file: src/ci/descriptor-maven.json
user: adejanovski
key: "$BINTRAY_API_KEY"
dry-run: false
skip_cleanup: true
on:
tags: true
services:
- postgresql
- docker
before_install: "./src/ci/before_install.sh"
install: "./src/ci/install.sh"
before_script: "./src/ci/before_script.sh"
script: "./src/ci/script.sh"
after_failure: "./src/ci/after_failure.sh"
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/00ad453df6ac8ac0d0ba
on_success: change
on_failure: always
on_start: never