ci: add fedora 34 build pipeline
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2021-04-13 22:26:54 +02:00
parent 9ecbc0eecb
commit 8dd5fdabe4
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -16,21 +16,19 @@ steps:
image: immawanderer/archlinux-cdev:latest
depends_on: [clone]
commands:
- uname -r
- cat /etc/os-release
- uname -r; cat /etc/os-release; nproc
- name: pull-fedora:34
pull: always
image: fedora:34
depends_on: [clone]
commands:
- uname -r
- cat /etc/os-release
- uname -r; cat /etc/os-release; nproc
---
kind: pipeline
type: docker
name: testing-ng
name: testing-ng archlinux
platform:
os: linux
@ -71,14 +69,15 @@ steps:
path: /usr
commands:
- export MAKEFLAGS="$MAKEFLAGS -j$(nproc)" && printf "$MAKEFLAGS\n"
- git clone https://github.com/ntop/nDPI.git ../nDPI && cd ../nDPI && pwd
- git clone https://github.com/ntop/nDPI.git /drone/nDPI
- cd /drone/nDPI
- git checkout 1.7
- ./autogen.sh
- ./configure
- make
- make install
- name: build-fastnetmon
- name: build fastnetmon
pull: if-not-exists
image: immawanderer/archlinux-cdev:latest
volumes:
@ -93,3 +92,103 @@ steps:
volumes:
- name: usrcache
temp: {}
---
kind: pipeline
type: docker
name: testing-ng fedora34
platform:
os: linux
arch: amd64
depends_on:
- pull
trigger:
event: [push, pull_request]
steps:
- name: deps
pull: if-not-exists
image: fedora:34
volumes:
- name: etc
path: /etc
- name: usrcache
path: /usr
commands:
- printf "$SHELL\n"
- printf "$PATH\n"
- dnf install -y git make cmake lld binutils gcc gcc-c++ libgcc libstdc++-{devel,static} glibc-devel openmpi-devel bison flex grpc-devel grpc-cli grpc-cpp grpc-plugins protobuf-c-devel protobuf-c-compiler protobuf-compiler cppunit log4cpp-devel json-c-devel capnproto-devel capnproto-libs libpcap-devel hiredis-devel mongo-c-driver-devel mongo-c-driver-libs boost-devel boost-{atomic,chrono,date-time,system,program-options,regex,thread} libtool libtool-ltdl which autoconf automake pkgconf openssl-devel kernel-devel ncurses-{c++-libs,devel,libs,static}
- dnf clean all -y
- name: build-install-nDPI
pull: if-not-exists
image: fedora:34
volumes:
- name: etc
path: /etc
- name: usrcache
path: /usr
commands:
- export MAKEFLAGS="$MAKEFLAGS -j$(nproc)" && printf "$MAKEFLAGS\n"
- git clone https://github.com/ntop/nDPI.git /usr/src/nDPI
- cd /usr/src/nDPI
- git checkout 1.7
- ./autogen.sh
- ./configure
- make
- make install
depends_on: [deps]
- name: show config.log on configure failure
pull: if-not-exists
image: fedora:34
volumes:
- name: usrcache
path: /usr
commands:
- if [ -f /usr/src/nDPI/config.log ]; then cat /usr/src/nDPI/config.log; fi
when:
status: [failure]
depends_on: [build-install-nDPI]
- name: apply-patch
pull: if-not-exists
image: fedora:34
volumes:
- name: etc
path: /etc
- name: usrcache
path: /usr
commands:
- cd /drone/src
- git apply src/patches/cmake-libndpi-nolibicu-cpp17-includes-protoc-grpc.patch
depends_on: [build-install-nDPI]
- name: build fastnetmon
pull: if-not-exists
image: fedora:34
volumes:
- name: etc
path: /etc
- name: usrcache
path: /usr
commands:
- ld --version
- gcc --version
- cmake --version
- export MAKEFLAGS="$MAKEFLAGS -j$(nproc)"
- cd src
- cmake -DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -Wall -Werror -Wextra -Wno-reorder -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-unused-but-set-variable -Wno-format-truncation -Wno-implicit-fallthrough -Wno-type-limits -Wno-class-memaccess -Wno-stringop-truncation"
- make clean fastnetmon all
when:
status: [success, failure]
depends_on: [apply-patch]
volumes:
- name: usrcache
temp: {}
- name: etc
temp: {}