forked from bareos/bareos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (61 loc) · 2.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
64
65
66
67
68
69
70
os:
- linux
dist: trusty
sudo: required
language: cpp
compiler:
- gcc
git:
depth: false
# This project also uses Coverity Scan https://scan.coverity.com/
# However, the Travis coverity scan addon (as of 19.02.2014) does not fit our needs,
# because then all builds are done as coverity scans and results send to the server.
# Therefore we reused the old method
# (setting environment variables, download and execute a script).
env:
global:
# -- BEGIN Coverity Scan ENV
# The build command with all of the arguments that you would apply to a manual `cov-build`
# Usually this is the same as STANDARD_BUILD_COMMAND, excluding the automated test arguments
- COVERITY_SCAN_BUILD_COMMAND="make -C obj-x86_64-linux-gnu"
# Name of the project
- COVERITY_SCAN_PROJECT_NAME="bareos/bareos"
# Email address for notifications related to this build
- COVERITY_SCAN_NOTIFICATION_EMAIL="[email protected]"
# Regular expression selects on which branches to run analysis
# Be aware of quotas. Do not run on every branch/commit
- COVERITY_SCAN_BRANCH_PATTERN="master"
# COVERITY_SCAN_TOKEN: is set as secure settings in the travis-ci.org configuration
- COVERITY_SCAN_BUILD_URL="https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh"
- COVERITY_SCAN_BUILD="curl -s $COVERITY_SCAN_BUILD_URL | bash"
# -- END Coverity Scan ENV
matrix:
include:
- env: DB=postgresql
- env: DB=mysql
- env: DB=sqlite3
- env: DB=postgresql COVERITY_SCAN=1
- env: DB=postgresql BUILD_WEBUI=true
addons:
sauce_connect: true
- env: DB=postgresql
compiler: clang
allow_failures:
- env: DB=postgresql BUILD_WEBUI=true
- env: DB=postgresql COVERITY_SCAN=1
before_install:
# install build dependencies
- .travis/travis_before_install.sh
before_script:
# changelog file is required (and normally generated by OBS)
- cp -a core/platforms/packaging/bareos.changes core/debian/changelog
- cmake -P write_version_files.cmake
- if [ -n "${BUILD_WEBUI}" ]; then cp -a webui/packaging/obs/bareos-webui.changes webui/debian/changelog; fi
# build and install Bareos packages
- .travis/travis_before_script.sh
script:
# run test script
- if [ -z "${COVERITY_SCAN}" ]; then sudo -E $PWD/.travis/all; fi
addons:
hosts:
- bareos.example.com