mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
commit
eec1d242c3
12
.github/workflows/linux.bash
vendored
12
.github/workflows/linux.bash
vendored
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -exo pipefail
|
||||
|
||||
export PATH="/usr/lib/ccache:/usr/lib64/ccache:/opt/rh/devtoolset-11/root/usr/bin:$PATH"
|
||||
export PATH="/usr/lib/ccache:/usr/lib64/ccache:$PATH"
|
||||
export CCACHE_DIR=/icinga2/ccache
|
||||
export CTEST_OUTPUT_ON_FAILURE=1
|
||||
CMAKE_OPTS=''
|
||||
@ -33,16 +33,6 @@ case "$DISTRO" in
|
||||
{boost,libedit,mariadb1\*,ncurses,openssl,postgresql,systemd}-devel
|
||||
;;
|
||||
|
||||
centos:*)
|
||||
yum install -y centos-release-scl epel-release
|
||||
yum install -y bison ccache cmake3 devtoolset-11-gcc-c++ flex ninja-build \
|
||||
{boost169,libedit,mariadb,ncurses,openssl,postgresql,systemd}-devel
|
||||
|
||||
ln -vs /usr/bin/cmake3 /usr/local/bin/cmake
|
||||
ln -vs /usr/bin/ccache /usr/lib64/ccache/g++
|
||||
CMAKE_OPTS='-DBOOST_INCLUDEDIR=/usr/include/boost169 -DBOOST_LIBRARYDIR=/usr/lib64/boost169'
|
||||
;;
|
||||
|
||||
debian:*|ubuntu:*)
|
||||
apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-{recommends,suggests} -y bison \
|
||||
|
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -23,7 +23,6 @@ jobs:
|
||||
distro:
|
||||
- amazonlinux:2
|
||||
- amazonlinux:2023
|
||||
- centos:7 # and RHEL 7
|
||||
- debian:11 # and Raspbian 11
|
||||
- debian:12 # and Raspbian 12
|
||||
- fedora:37
|
||||
@ -33,6 +32,7 @@ jobs:
|
||||
- opensuse/leap:15.3 # SLES 15.3
|
||||
- opensuse/leap:15.4 # and SLES 15.4
|
||||
- opensuse/leap:15.5 # and SLES 15.5
|
||||
- opensuse/leap:15.6 # and SLES 15.6
|
||||
- rockylinux:8 # RHEL 8
|
||||
- rockylinux:9 # RHEL 9
|
||||
- ubuntu:20.04
|
||||
|
@ -24,7 +24,7 @@ if (-not ($env:PATH -contains $env:CMAKE_PATH)) {
|
||||
|
||||
cd "$env:ICINGA2_BUILDPATH"
|
||||
|
||||
ctest.exe -C "${env:CMAKE_BUILD_TYPE}" -T test -O $env:ICINGA2_BUILDPATH/Test.xml --output-on-failure --log_level=all
|
||||
ctest.exe -C "${env:CMAKE_BUILD_TYPE}" -T test -O $env:ICINGA2_BUILDPATH/Test.xml --output-on-failure
|
||||
if ($lastexitcode -ne 0) {
|
||||
cd ..
|
||||
exit $lastexitcode
|
||||
|
Loading…
x
Reference in New Issue
Block a user