Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Steffens <joerg.steffens@bareos.com>2020-08-27 18:08:27 +0300
committerJoerg Steffens <joerg.steffens@bareos.com>2020-08-29 16:11:26 +0300
commitbc0e7851c11ef6124cfac8e12357fb45b097b164 (patch)
treef1934fda4c39ba5fd8d040ff2e2b45ed7c43e62c /.travis.yml
parentde46d0b15ede2178e8d5ea3ff03e7321b210f04d (diff)
travis: fix the travis checks
The Travis checks did fail, because the Bareos project directory structure have changed. The Bareos WebUI is now build and packaged in the same step as the Bareos core. Also disables the tests for MySQL and Sqlite, as these are deprecated. Debian build now honors the flag DEB_BUILD_OPTIONS="nocheck" to skip tests.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml22
1 files changed, 11 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml
index 6d4c139d4..c64303b92 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,12 +1,15 @@
os:
- linux
-dist: trusty
+# dist: using Ubuntu 20.04 (Focal Fossa)
+dist: focal
sudo: required
language: cpp
compiler:
- gcc
git:
depth: false
+services:
+ - postgresql
# 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,
@@ -16,6 +19,8 @@ git:
env:
global:
+ - BAREOS_VERSION="unknown"
+ - NOW=$(LANG=C date -R -u)
# -- 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
@@ -35,19 +40,15 @@ env:
matrix:
include:
- env: DB=postgresql
- - env: DB=mysql
- - env: DB=sqlite3
- - env: DB=postgresql COVERITY_SCAN=1
+ - env: DB=postgresql COVERITY_SCAN=true
- env: DB=postgresql BUILD_WEBUI=true
addons:
sauce_connect: true
- env: DB=postgresql
compiler: clang
allow_failures:
+ - env: DB=postgresql COVERITY_SCAN=true
- env: DB=postgresql BUILD_WEBUI=true
- - env: DB=postgresql COVERITY_SCAN=1
-
-
before_install:
# install build dependencies
@@ -56,16 +57,15 @@ before_install:
before_script:
# changelog file is required (and normally generated by Jenkins)
- cmake -P write_version_files.cmake
- - printf "bareos (19.0.0~pre-1) unstable; urgency=low\n\n * dummy\n\n -- nobody <nobody@example.com> Tue, 01 Jan 2019 00:00:00 +0000\n\n" > core/debian/changelog
- - printf "bareos-webui (19.0.0~pre-1) unstable; urgency=low\n\n * dummy\n\n -- nobody <nobody@example.com> Tue, 01 Jan 2019 00:00:00 +0000\n\n" > webui/debian/changelog
+ - BAREOS_VERSION=$(cmake -P get_version.cmake | sed -e 's/-- //')
+ - printf "bareos (%s) unstable; urgency=low\n\n * dummy\n\n -- nobody <nobody@example.com> %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
+ - if [ -z "${COVERITY_SCAN:-}" ]; then sudo -E $PWD/.travis/all; fi
addons:
hosts:
- bareos.example.com
-