ci: update testing flow [wip]
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2021-04-11 23:00:18 +02:00
parent 10824e33dc
commit 9ecbc0eecb
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -8,28 +8,29 @@ platform:
arch: amd64 arch: amd64
trigger: trigger:
branch: [development] event: [push, pull_request]
event: [push]
steps: steps:
- name: pull-archlinux-cdev:latest
pull: always
image: immawanderer/archlinux-cdev:latest
depends_on: [clone]
commands:
- uname -r
- cat /etc/os-release
- name: pull-fedora:34 - name: pull-fedora:34
pull: always pull: always
image: fedora:34 image: fedora:34
depends_on: [clone] depends_on: [clone]
commands: commands:
- uname -r - uname -r
- cat /etc/os-release
- name: pull-alpine
pull: always
image: alpine
depends_on: [clone]
commands:
- uname -r
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: build-single-step name: testing-ng
platform: platform:
os: linux os: linux
@ -39,65 +40,56 @@ depends_on:
- pull - pull
trigger: trigger:
branch: [development] event: [push, pull_request]
event: [push]
steps: steps:
- name: build - name: deps
pull: always pull: if-not-exists
image: fedora:34 image: immawanderer/archlinux-cdev:latest
volumes:
- name: usrcache
path: /usr
commands: commands:
- dnf install -y perl wget - printf "$SHELL\n"
- perl src/fastnetmon_build.pl --install_dependency_packages_only - printf "$PATH\n"
- perl src/fastnetmon_build.pl --build_gcc_only - pacman -Sy grpc protobuf-c python-protobuf grpc-cli cppunit log4cpp json-c capnproto hiredis mongo-c-driver boost boost-libs libtool which autoconf automake pkgconf gcc-libs git --needed
- perl src/fastnetmon_build.pl --build_dependencies_only
- perl src/fastnetmon_build.pl --use-git-master --build_fastnetmon_only
- perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz
--- - name: apply-patch
kind: pipeline pull: if-not-exists
type: docker image: immawanderer/archlinux-cdev:latest
name: build-multi-step volumes:
- name: usrcache
platform: path: /usr
os: linux
arch: amd64
depends_on:
- pull
trigger:
branch: [development]
event: [push]
steps:
- name: install_required_packaged
pull: always
image: fedora:34
commands: commands:
- dnf install -y perl wget - git apply src/patches/cmake-libndpi-nolibicu-cpp17-includes-protoc-grpc.patch
- perl src/fastnetmon_build.pl --install_dependency_packages_only
- name: install_gcc - name: build-install-nDPI
pull: always pull: if-not-exists
image: fedora:34 image: immawanderer/archlinux-cdev:latest
volumes:
- name: usrcache
path: /usr
commands: commands:
- dnf install -y perl wget - export MAKEFLAGS="$MAKEFLAGS -j$(nproc)" && printf "$MAKEFLAGS\n"
- perl src/fastnetmon_build.pl --build_gcc_only - git clone https://github.com/ntop/nDPI.git ../nDPI && cd ../nDPI && pwd
- git checkout 1.7
- ./autogen.sh
- ./configure
- make
- make install
- name: install_dependencies - name: build-fastnetmon
pull: always pull: if-not-exists
image: fedora:34 image: immawanderer/archlinux-cdev:latest
volumes:
- name: usrcache
path: /usr
commands: commands:
- dnf install -y perl wget - export MAKEFLAGS="$MAKEFLAGS -j$(nproc)"
- perl src/fastnetmon_build.pl --build_dependencies_only - cd src
- perl src/fastnetmon_build.pl --use-git-master --build_fastnetmon_only - 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"
- perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz - make clean fastnetmon all
- name: collect_debug volumes:
pull: always - name: usrcache
image: alpine temp: {}
commands:
- cat /tmp/fastnetmon_install.log
when:
status: [failure]