-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.travis.yml
59 lines (53 loc) · 1.78 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
dist: xenial
sudo: required
language: cpp
services:
- docker
addons:
coverity_scan:
project:
name: "cruzdb/zlog"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "cmake -DWITH_JNI=ON -DWITH_CEPH=ON ."
build_command: "make"
branch_pattern: coverity_scan
env:
global:
# COVERITY_SCAN_TOKEN
- secure: "EhSojL5dZ7LY9S59Iixzw8KUtMqVdE8dZTZqZ0gnA1VfG4XcQr8u8Vi9jJzGaGxcXIL10p3nE4whrmhlEhUpxKkrcOgKo9vKmn9xByUHd0CBhBudZAdlQsq4DMEp20qAwg+5iuCUHS6cn3UjduQqdo9YMhfqFuRiH+U3oZxS0W4="
matrix:
include:
- os: linux
compiler: gcc
- os: linux
compiler: clang
- os: linux
env: DOCKER_IMAGE=centos:7
- os: linux
env: DOCKER_IMAGE=fedora:27
- os: linux
env: DOCKER_IMAGE=fedora:28
- os: linux
env: DOCKER_IMAGE=debian:stretch
- os: linux
env: DOCKER_IMAGE=ubuntu:bionic
- os: linux
env: DOCKER_IMAGE=ubuntu:xenial RUN_COVERAGE=0
- os: linux
env: DOCKER_IMAGE=ubuntu:xenial RUN_COVERAGE=1
- os: osx
allow_failures:
- os: osx
# the coverity build runs in the standard travis environment (job config #1
# from the build matrix) and needs to have the proper dependencies installed.
# all other job configurations only run ci/script.sh below which will handle
# dependency installation.
before_install:
- ci/before_install.sh
- if [ $TRAVIS_BRANCH == coverity_scan ] && [ ${TRAVIS_JOB_NUMBER##*.} == 1 ]; then ./install-deps.sh && ci/install-ceph.sh && sudo apt-get install -y rados-objclass-dev; fi
- if [ $TRAVIS_BRANCH == coverity_scan ] && [ ${TRAVIS_JOB_NUMBER##*.} != 1 ]; then exit 0; fi
# build and testing is skipped for coverity builds
script:
- test $TRAVIS_BRANCH != coverity_scan || exit 0
- ci/script.sh