forked from rethinkdb/rethinkdb_rebirth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
519 lines (494 loc) · 19.9 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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
# The build flows as follows:
# 1. Stage 1 (Building Base Images) builds and pushes the base docker images which
# contain all the build and packaging dependencies.
# 2. Stage 2 (Unit Testing) runs the unittests on the `Trusty` VM, and also in docker
# containers run off the base images from stage 1.
# 3. Stage 3 (Packaging and Deployment) packages rebirthdb and deploys the packages to
# to bintray, executing the steps in containers run off the base images from stage 1.
# The following environment variables are set on travis:
# 1. DOCKER_USERNAME : The account whose password is used to authenticate requests to docker.
# 2. DOCKER_PASSWORD : The password for the docker account with the above username.
# 3. DOCKERCLOUD_NAMESPACE : The namespace under which docker images are pushed to / pulled from.
# 4. BINTRAY_USER : This is the bintray account whose API key is used to authenticate requests.
# 5. BINTRAY_API_KEY : The bintray account's API key used for authentication
# 6. BINTRAY_SUBJECT : The bintray account to whose repositories, the packages are deployed.
# We make use of YAML's block scalar styles to write the multi-line commands.
# For a good explanation of their use, see this StackOverflow answer at:
# https://stackoverflow.com/a/21699210/6163906
sudo: required
dist: trusty
language: cpp
notifications:
email:
- rebirthdb-dev@googlegroups.com
jobs:
include:
- stage: Building Base Images
name: Trusty Base Image (Docker)
env: DISTRIBUTION=trusty
install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get -qq update
- sudo apt-get -y install docker-ce build-essential
script:
- ./configure --allow-fetch
- make dist
- tar xvzf build/packages/rebirthdb-$(./scripts/gen-version.sh).tgz -C docker/$DISTRIBUTION --strip-components=1
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- cd docker/$DISTRIBUTION
- docker build -t rebirthdb-$DISTRIBUTION-base .
- docker images
- docker tag rebirthdb-$DISTRIBUTION-base $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh)
- docker push $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh)
- name: Xenial Base Image (Docker)
env: DISTRIBUTION=xenial
install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get -qq update
- sudo apt-get -y install docker-ce build-essential
script:
- ./configure --allow-fetch
- make dist
- tar xvzf build/packages/rebirthdb-$(./scripts/gen-version.sh).tgz -C docker/$DISTRIBUTION --strip-components=1
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- cd docker/$DISTRIBUTION
- docker build -t rebirthdb-$DISTRIBUTION-base .
- docker images
- docker tag rebirthdb-$DISTRIBUTION-base $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh)
- docker push $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh)
- name: Bionic Base Image (Docker)
env: DISTRIBUTION=bionic
install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get -qq update
- sudo apt-get -y install docker-ce build-essential
script:
- ./configure --allow-fetch
- make dist
- tar xvzf build/packages/rebirthdb-$(./scripts/gen-version.sh).tgz -C docker/$DISTRIBUTION --strip-components=1
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- cd docker/$DISTRIBUTION
- docker build -t rebirthdb-$DISTRIBUTION-base .
- docker images
- docker tag rebirthdb-$DISTRIBUTION-base $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh)
- docker push $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh)
- name: Jessie Base Image (Docker)
env: DISTRIBUTION=jessie
install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get -qq update
- sudo apt-get -y install docker-ce build-essential
script:
- ./configure --allow-fetch
- make dist
- tar xvzf build/packages/rebirthdb-$(./scripts/gen-version.sh).tgz -C docker/$DISTRIBUTION --strip-components=1
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- cd docker/$DISTRIBUTION
- docker build -t rebirthdb-$DISTRIBUTION-base .
- docker images
- docker tag rebirthdb-$DISTRIBUTION-base $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh)
- docker push $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh)
- name: Stretch Base Image (Docker)
env: DISTRIBUTION=stretch
install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get -qq update
- sudo apt-get -y install docker-ce build-essential
script:
- ./configure --allow-fetch
- make dist
- tar xvzf build/packages/rebirthdb-$(./scripts/gen-version.sh).tgz -C docker/$DISTRIBUTION --strip-components=1
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- cd docker/$DISTRIBUTION
- docker build -t rebirthdb-$DISTRIBUTION-base .
- docker images
- docker tag rebirthdb-$DISTRIBUTION-base $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh)
- docker push $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh)
- name: Centos 7 Base Image (Docker)
env: DISTRIBUTION=centos7
install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get -qq update
- sudo apt-get -y install docker-ce build-essential
script:
- ./configure --allow-fetch --dynamic jemalloc
- make dist
- tar xvzf build/packages/rebirthdb-$(./scripts/gen-version.sh).tgz -C docker/$DISTRIBUTION --strip-components=1
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- cd docker/$DISTRIBUTION
- docker build -t rebirthdb-$DISTRIBUTION-base .
- docker images
- docker tag rebirthdb-$DISTRIBUTION-base $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh)
- docker push $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh)
- stage: Unit Testing
# We use the tests on the Trusty VM as our baseline, and then to generate the coverage results.
name: Trusty Unit Tests (VM)
env:
- DISTRIBUTION=trusty
compiler: gcc
before_install:
# -qq is so that we get no output except for errors. This reduces the size of the
# output log file. Travis has a hard limit of 4MBs, beyond which it terminates the
# build process.
- sudo apt-get -qq update
- sudo apt-get -qq -y install mg
- sudo apt-get -qq -y install build-essential protobuf-compiler python
- sudo apt-get -qq -y install libprotobuf-dev libcurl4-openssl-dev libboost-all-dev
- sudo apt-get -qq -y install libncurses5-dev libjemalloc-dev wget m4 lcov
- pip install --user cpp-coveralls
install:
- ./configure --allow-fetch
- make -j $(($(nproc) + 1)) COVERAGE=1 && make test -j $(($(nproc) + 1)) COVERAGE=1
script:
# This step runs lcov and generates the necessary coverage information
- make coverage -j $(($(nproc) + 1)) COVERAGE=1
after_success:
# All that's left for coveralls is to upload the coverage info
- coveralls --no-gcov --lcov-file build/release/coverage.info
- name: Trusty Unit Tests (Docker)
env: DISTRIBUTION=trusty
script:
- |
docker run $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh) /bin/bash -c \
"pwd && ./configure --allow-fetch && \
make test -j $(($(nproc) + 1)) && \
./build/release/rebirthdb-unittest"
- name: Xenial Unit Tests (Docker)
env: DISTRIBUTION=xenial
script:
- |
docker run $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh) /bin/bash -c \
"pwd && ./configure --allow-fetch && \
make test -j $(($(nproc) + 1)) && \
./build/release/rebirthdb-unittest"
- name: Bionic Unit Tests (Docker)
env: DISTRIBUTION=bionic
script:
- |
docker run $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh) /bin/bash -c \
"pwd && ./configure --allow-fetch && \
make test -j $(($(nproc) + 1)) && \
./build/release/rebirthdb-unittest"
- name: Jessie Unit Tests (Docker)
env: DISTRIBUTION=jessie
script:
- |
docker run $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh) /bin/bash -c \
"pwd && ./configure --allow-fetch && \
make test -j $(($(nproc) + 1)) && \
./build/release/rebirthdb-unittest"
- name: Stretch Unit Tests (Docker)
env: DISTRIBUTION=stretch
script:
- |
docker run $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh) /bin/bash -c \
"pwd && ./configure --allow-fetch && \
make test -j $(($(nproc) + 1)) && \
./build/release/rebirthdb-unittest"
- name: Centos 7 Unit Tests (Docker)
env: DISTRIBUTION=centos7
script:
- |
docker run $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh) /bin/bash -c \
"pwd && ./configure --allow-fetch --dynamic jemalloc && \
make test -j $(($(nproc) + 1)) && \
./build/release/rebirthdb-unittest"
- stage: Packaging and Deployment
# We don't sign the package (SIGN_PACKAGE=0) while building it on travis because bintray will do that
# automatically once we upload the package.
# This condition '"$TRAVIS_TAG" =~ ^v[\d]+.[\d]+.[\d]+$' matches tags of the form v2.4.0 and does not
# match v2.4.0-beta.0
name: Trusty Packaging and Deployment
env: DISTRIBUTION=trusty
before_script:
- sudo mkdir /rebirthdb_packages
script:
- |
docker run -v /rebirthdb_packages:/rebirthdb_packages $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh) \
/bin/bash -c "./configure --allow-fetch && \
make build-deb -j $(($(nproc) + 1)) \
UBUNTU_RELEASE=$DISTRIBUTION
PACKAGE_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER
SIGN_PACKAGE=0 && \
cp build/packages/rebirthdb_*.deb /rebirthdb_packages"
before_deploy:
- curl -fL https://getcli.jfrog.io | sh
- sudo mv jfrog /usr/bin && jfrog --version
deploy:
- provider: script
script: >-
JFROG_CLI_OFFER_CONFIG=false
sudo jfrog bt upload
--user=$BINTRAY_USER
--key=$BINTRAY_API_KEY
--publish=true
--deb=$DISTRIBUTION/main/amd64
--override=true
"/rebirthdb_packages/rebirthdb_*.deb"
$BINTRAY_SUBJECT/apt/rebirthdb/$(./scripts/gen-version.sh)
pool/r/rebirthdb/
on:
branch: next
tags: true
condition: $TRAVIS_TAG =~ ^v[\d]+.[\d]+.[\d]+$
skip_cleanup: true
- provider: script
script: >-
JFROG_CLI_OFFER_CONFIG=false
sudo jfrog bt upload
--user=$BINTRAY_USER
--key=$BINTRAY_API_KEY
--publish=true
--deb=$DISTRIBUTION/main/amd64
--override=true
"/rebirthdb_packages/rebirthdb_*.deb"
$BINTRAY_SUBJECT/apt/rebirthdb-dev/$(./scripts/gen-version.sh)
pool/r/rebirthdb-dev/
on:
all_branches: true
skip_cleanup: true
- name: Xenial Packaging and Deployment
env: DISTRIBUTION=xenial
before_script:
- sudo mkdir /rebirthdb_packages
script:
- |
docker run -v /rebirthdb_packages:/rebirthdb_packages $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh) \
/bin/bash -c "./configure --allow-fetch && \
make build-deb -j $(($(nproc) + 1)) \
UBUNTU_RELEASE=$DISTRIBUTION
PACKAGE_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER
SIGN_PACKAGE=0 && \
cp build/packages/rebirthdb_*.deb /rebirthdb_packages"
before_deploy:
- curl -fL https://getcli.jfrog.io | sh
- sudo mv jfrog /usr/bin && jfrog --version
deploy:
- provider: script
script: >-
JFROG_CLI_OFFER_CONFIG=false
sudo jfrog bt upload
--user=$BINTRAY_USER
--key=$BINTRAY_API_KEY
--publish=true
--deb=$DISTRIBUTION/main/amd64
--override=true
"/rebirthdb_packages/rebirthdb_*.deb"
$BINTRAY_SUBJECT/apt/rebirthdb/$(./scripts/gen-version.sh)
pool/r/rebirthdb/
on:
branch: next
tags: true
condition: $TRAVIS_TAG =~ ^v[\d]+.[\d]+.[\d]+$
skip_cleanup: true
- provider: script
script: >-
JFROG_CLI_OFFER_CONFIG=false
sudo jfrog bt upload
--user=$BINTRAY_USER
--key=$BINTRAY_API_KEY
--publish=true
--deb=$DISTRIBUTION/main/amd64
--override=true
"/rebirthdb_packages/rebirthdb_*.deb"
$BINTRAY_SUBJECT/apt/rebirthdb-dev/$(./scripts/gen-version.sh)
pool/r/rebirthdb-dev/
on:
all_branches: true
skip_cleanup: true
- name: Bionic Packaging and Deployment
env: DISTRIBUTION=bionic
before_script:
- sudo mkdir /rebirthdb_packages
script:
- |
docker run -v /rebirthdb_packages:/rebirthdb_packages $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh) \
/bin/bash -c "./configure --allow-fetch && \
make build-deb -j $(($(nproc) + 1)) \
UBUNTU_RELEASE=$DISTRIBUTION
PACKAGE_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER
SIGN_PACKAGE=0 && \
cp build/packages/rebirthdb_*.deb /rebirthdb_packages"
before_deploy:
- curl -fL https://getcli.jfrog.io | sh
- sudo mv jfrog /usr/bin && jfrog --version
deploy:
- provider: script
script: >-
JFROG_CLI_OFFER_CONFIG=false
sudo jfrog bt upload
--user=$BINTRAY_USER
--key=$BINTRAY_API_KEY
--publish=true
--deb=$DISTRIBUTION/main/amd64
--override=true
"/rebirthdb_packages/rebirthdb_*.deb"
$BINTRAY_SUBJECT/apt/rebirthdb/$(./scripts/gen-version.sh)
pool/r/rebirthdb/
on:
branch: next
tags: true
condition: $TRAVIS_TAG =~ ^v[\d]+.[\d]+.[\d]+$
skip_cleanup: true
- provider: script
script: >-
JFROG_CLI_OFFER_CONFIG=false
sudo jfrog bt upload
--user=$BINTRAY_USER
--key=$BINTRAY_API_KEY
--publish=true
--deb=$DISTRIBUTION/main/amd64
--override=true
"/rebirthdb_packages/rebirthdb_*.deb"
$BINTRAY_SUBJECT/apt/rebirthdb-dev/$(./scripts/gen-version.sh)
pool/r/rebirthdb-dev/
on:
all_branches: true
skip_cleanup: true
- name: Jessie Packaging and Deployment
env: DISTRIBUTION=jessie
before_script:
- sudo mkdir /rebirthdb_packages
script:
- |
docker run -v /rebirthdb_packages:/rebirthdb_packages $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh) \
/bin/bash -c "./configure --allow-fetch && \
make build-deb -j $(($(nproc) + 1)) \
DEB_RELEASE=$DISTRIBUTION
PACKAGE_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER
SIGN_PACKAGE=0 && \
cp build/packages/rebirthdb_*.deb /rebirthdb_packages"
before_deploy:
- curl -fL https://getcli.jfrog.io | sh
- sudo mv jfrog /usr/bin && jfrog --version
deploy:
- provider: script
script: >-
JFROG_CLI_OFFER_CONFIG=false
sudo jfrog bt upload
--user=$BINTRAY_USER
--key=$BINTRAY_API_KEY
--publish=true
--deb=$DISTRIBUTION/main/amd64
--override=true
"/rebirthdb_packages/rebirthdb_*.deb"
$BINTRAY_SUBJECT/apt/rebirthdb/$(./scripts/gen-version.sh)
pool/r/rebirthdb/
on:
branch: next
tags: true
condition: $TRAVIS_TAG =~ ^v[\d]+.[\d]+.[\d]+$
skip_cleanup: true
- provider: script
script: >-
JFROG_CLI_OFFER_CONFIG=false
sudo jfrog bt upload
--user=$BINTRAY_USER
--key=$BINTRAY_API_KEY
--publish=true
--deb=$DISTRIBUTION/main/amd64
--override=true
"/rebirthdb_packages/rebirthdb_*.deb"
$BINTRAY_SUBJECT/apt/rebirthdb-dev/$(./scripts/gen-version.sh)
pool/r/rebirthdb-dev/
on:
all_branches: true
skip_cleanup: true
- name: Stretch Packaging and Deployment
env: DISTRIBUTION=stretch
before_script:
- sudo mkdir /rebirthdb_packages
script:
- |
docker run -v /rebirthdb_packages:/rebirthdb_packages $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh) \
/bin/bash -c "./configure --allow-fetch && \
make build-deb -j $(($(nproc) + 1)) \
DEB_RELEASE=$DISTRIBUTION
PACKAGE_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER
SIGN_PACKAGE=0 && \
cp build/packages/rebirthdb_*.deb /rebirthdb_packages"
before_deploy:
- curl -fL https://getcli.jfrog.io | sh
- sudo mv jfrog /usr/bin && jfrog --version
deploy:
- provider: script
script: >-
JFROG_CLI_OFFER_CONFIG=false
sudo jfrog bt upload
--user=$BINTRAY_USER
--key=$BINTRAY_API_KEY
--publish=true
--deb=$DISTRIBUTION/main/amd64
--override=true
"/rebirthdb_packages/rebirthdb_*.deb"
$BINTRAY_SUBJECT/apt/rebirthdb/$(./scripts/gen-version.sh)
pool/r/rebirthdb/
on:
branch: next
tags: true
condition: $TRAVIS_TAG =~ ^v[\d]+.[\d]+.[\d]+$
skip_cleanup: true
- provider: script
script: >-
JFROG_CLI_OFFER_CONFIG=false
sudo jfrog bt upload
--user=$BINTRAY_USER
--key=$BINTRAY_API_KEY
--publish=true
--deb=$DISTRIBUTION/main/amd64
--override=true
"/rebirthdb_packages/rebirthdb_*.deb"
$BINTRAY_SUBJECT/apt/rebirthdb-dev/$(./scripts/gen-version.sh)
pool/r/rebirthdb-dev/
on:
all_branches: true
skip_cleanup: true
- name: Centos 7 Packaging and Deployment
env: DISTRIBUTION=centos7
before_script:
- sudo mkdir /rebirthdb_packages
script:
- |
docker run -v /rebirthdb_packages:/rebirthdb_packages $DOCKERCLOUD_NAMESPACE/rebirthdb-$DISTRIBUTION-base:$(./scripts/gen-version.sh) \
/bin/bash -c "./scripts/build-rpm.sh && \
cp build/packages/rebirthdb*.rpm /rebirthdb_packages"
before_deploy:
- curl -fL https://getcli.jfrog.io | sh
- sudo mv jfrog /usr/bin && jfrog --version
deploy:
- provider: script
script: >-
JFROG_CLI_OFFER_CONFIG=false
sudo jfrog bt upload
--user=$BINTRAY_USER
--key=$BINTRAY_API_KEY
--publish=true
--override=true
"/rebirthdb_packages/rebirthdb*.rpm"
$BINTRAY_SUBJECT/rpm/rebirthdb/$(./scripts/gen-version.sh)
stable/centos/7/x86_64/
on:
branch: next
tags: true
condition: $TRAVIS_TAG =~ ^v[\d]+.[\d]+.[\d]+$
skip_cleanup: true
- provider: script
script: >-
JFROG_CLI_OFFER_CONFIG=false
sudo jfrog bt upload
--user=$BINTRAY_USER
--key=$BINTRAY_API_KEY
--publish=true
--override=true
"/rebirthdb_packages/rebirthdb*.rpm"
$BINTRAY_SUBJECT/rpm/rebirthdb-dev/$(./scripts/gen-version.sh)
dev/centos/7/x86_64/
on:
all_branches: true
skip_cleanup: true