2021-03-28 19:06:37 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: pull
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
trigger:
|
2021-04-11 23:00:18 +02:00
|
|
|
event: [push, pull_request]
|
2021-03-28 19:06:37 +02:00
|
|
|
|
|
|
|
steps:
|
2021-04-11 23:00:18 +02:00
|
|
|
- name: pull-archlinux-cdev:latest
|
2021-03-28 19:06:37 +02:00
|
|
|
pull: always
|
2021-04-11 23:00:18 +02:00
|
|
|
image: immawanderer/archlinux-cdev:latest
|
2021-03-28 19:06:37 +02:00
|
|
|
depends_on: [clone]
|
|
|
|
commands:
|
2021-04-13 22:26:54 +02:00
|
|
|
- uname -r; cat /etc/os-release; nproc
|
2021-03-28 19:06:37 +02:00
|
|
|
|
2021-04-11 23:00:18 +02:00
|
|
|
- name: pull-fedora:34
|
2021-03-28 19:06:37 +02:00
|
|
|
pull: always
|
2021-04-11 23:00:18 +02:00
|
|
|
image: fedora:34
|
2021-03-28 19:06:37 +02:00
|
|
|
depends_on: [clone]
|
|
|
|
commands:
|
2021-04-13 22:26:54 +02:00
|
|
|
- uname -r; cat /etc/os-release; nproc
|
2021-03-28 19:06:37 +02:00
|
|
|
|
2021-03-28 18:51:42 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2021-04-13 22:26:54 +02:00
|
|
|
name: testing-ng archlinux
|
2021-03-28 18:51:42 +02:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
2021-03-28 19:06:37 +02:00
|
|
|
depends_on:
|
|
|
|
- pull
|
|
|
|
|
2021-03-28 18:51:42 +02:00
|
|
|
trigger:
|
2021-04-11 23:00:18 +02:00
|
|
|
event: [push, pull_request]
|
2021-03-28 18:51:42 +02:00
|
|
|
|
|
|
|
steps:
|
2021-04-11 23:00:18 +02:00
|
|
|
- name: deps
|
|
|
|
pull: if-not-exists
|
|
|
|
image: immawanderer/archlinux-cdev:latest
|
|
|
|
volumes:
|
|
|
|
- name: usrcache
|
|
|
|
path: /usr
|
2021-03-28 18:51:42 +02:00
|
|
|
commands:
|
2021-04-11 23:00:18 +02:00
|
|
|
- printf "$SHELL\n"
|
|
|
|
- printf "$PATH\n"
|
|
|
|
- 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
|
|
|
|
|
|
|
|
- name: apply-patch
|
|
|
|
pull: if-not-exists
|
|
|
|
image: immawanderer/archlinux-cdev:latest
|
|
|
|
volumes:
|
|
|
|
- name: usrcache
|
|
|
|
path: /usr
|
2021-03-28 18:51:42 +02:00
|
|
|
commands:
|
2021-04-11 23:00:18 +02:00
|
|
|
- git apply src/patches/cmake-libndpi-nolibicu-cpp17-includes-protoc-grpc.patch
|
|
|
|
|
|
|
|
- name: build-install-nDPI
|
|
|
|
pull: if-not-exists
|
|
|
|
image: immawanderer/archlinux-cdev:latest
|
|
|
|
volumes:
|
|
|
|
- name: usrcache
|
|
|
|
path: /usr
|
2021-03-28 18:51:42 +02:00
|
|
|
commands:
|
2021-04-11 23:00:18 +02:00
|
|
|
- export MAKEFLAGS="$MAKEFLAGS -j$(nproc)" && printf "$MAKEFLAGS\n"
|
2021-04-13 22:26:54 +02:00
|
|
|
- git clone https://github.com/ntop/nDPI.git /drone/nDPI
|
|
|
|
- cd /drone/nDPI
|
2021-04-11 23:00:18 +02:00
|
|
|
- git checkout 1.7
|
|
|
|
- ./autogen.sh
|
|
|
|
- ./configure
|
|
|
|
- make
|
|
|
|
- make install
|
|
|
|
|
2021-04-13 22:26:54 +02:00
|
|
|
- name: build fastnetmon
|
2021-04-11 23:00:18 +02:00
|
|
|
pull: if-not-exists
|
|
|
|
image: immawanderer/archlinux-cdev:latest
|
|
|
|
volumes:
|
|
|
|
- name: usrcache
|
|
|
|
path: /usr
|
2021-03-28 18:51:42 +02:00
|
|
|
commands:
|
2021-04-11 23:00:18 +02:00
|
|
|
- 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
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: usrcache
|
|
|
|
temp: {}
|
2021-04-13 22:26:54 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
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: {}
|