forked from bareos/bareos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (79 loc) · 2.92 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
os:
- linux
# dist: using Ubuntu 20.04 (Focal Fossa)
#dist: focal
# dist: using Ubuntu 18.04 (Bionic)
dist: bionic
# sudo: required
language: cpp
compiler:
- gcc
git:
depth: false
services:
- postgresql
addons:
hosts:
- bareos.example.com
# 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:
- BAREOS_VERSION="unknown"
- NOW=$(LANG=C date -R -u)
- DB=postgresql
# -- 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
jobs:
include:
- os: linux
dist: focal
addons:
# The travis focal dist from 03 Nov 2020 fails
# with the default postgresql installation.
# However, Postgresql 13 does work.
# This entry can be removed, as soon,
# as the default postgresql installation works again.
postgresql: "13"
- os: linux
dist: bionic
# disabled, because cmake is too old.
#- os: linux
# dist: trusty
- compiler: clang
- env: COVERITY_SCAN=true
- env: BUILD_WEBUI=true
addons:
sauce_connect: true
allow_failures:
- env: COVERITY_SCAN=true
- env: BUILD_WEBUI=true
before_install:
# install build dependencies
- .travis/travis_before_install.sh
before_script:
# changelog file is required (and normally generated by Jenkins)
- cmake -P write_version_files.cmake
- BAREOS_VERSION=$(cmake -P get_version.cmake | sed -e 's/-- //')
- printf "bareos (%s) unstable; urgency=low\n\n * dummy\n\n -- nobody <[email protected]> %s\n\n" "${BAREOS_VERSION}" "${NOW}" | tee debian/changelog
# 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