ci: bring custom cpp image with deps installed
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3528ee7767
commit
dd3dd4201d
66
.drone.yml
66
.drone.yml
@ -18,9 +18,9 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- uname -r; cat /etc/os-release; nproc
|
- uname -r; cat /etc/os-release; nproc
|
||||||
|
|
||||||
- name: pull-fedora:34
|
- name: pull-immawanderer/fedora-cpp:linux-amd64
|
||||||
pull: always
|
pull: always
|
||||||
image: fedora:34
|
image: immawanderer/fedora-cpp:linux-amd64
|
||||||
depends_on: [clone]
|
depends_on: [clone]
|
||||||
commands:
|
commands:
|
||||||
- uname -r; cat /etc/os-release; nproc
|
- uname -r; cat /etc/os-release; nproc
|
||||||
@ -163,58 +163,20 @@ trigger:
|
|||||||
event: [push, pull_request]
|
event: [push, pull_request]
|
||||||
|
|
||||||
steps:
|
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 {c,auto}make autoconf lld binutils gcc gcc-c++ libgcc libstdc++-{devel,static} glibc-devel openmpi-devel bison flex grpc-{cli,cpp,devel,plugins} protobuf-c-{devel,compiler} protobuf-compiler cppunit log4cpp-devel json-c-devel capnproto-{devel,libs} libpcap-devel hiredis-devel mongo-c-driver-{devel,libs} boost-{devel,atomic,chrono,date-time,system,program-options,regex,thread} libtool libtool-ltdl which 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: apply-patch
|
- name: apply-patch
|
||||||
pull: if-not-exists
|
pull: always
|
||||||
image: fedora:34
|
image: immawanderer/fedora-cpp:linux-amd64
|
||||||
volumes:
|
volumes:
|
||||||
- name: etc
|
|
||||||
path: /etc
|
|
||||||
- name: usrcache
|
- name: usrcache
|
||||||
path: /usr
|
path: /usr
|
||||||
commands:
|
commands:
|
||||||
- cd /drone/src
|
- cd /drone/src
|
||||||
- git apply src/patches/cmake-libndpi-nolibicu-cpp17-includes-protoc-grpc.patch
|
- git apply src/patches/cmake-libndpi-nolibicu-cpp17-includes-protoc-grpc.patch
|
||||||
depends_on: [deps]
|
|
||||||
|
|
||||||
- name: build fastnetmon
|
- name: build fastnetmon
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: fedora:34
|
image: immawanderer/fedora-cpp:linux-amd64
|
||||||
volumes:
|
volumes:
|
||||||
- name: etc
|
|
||||||
path: /etc
|
|
||||||
- name: usrcache
|
- name: usrcache
|
||||||
path: /usr
|
path: /usr
|
||||||
commands:
|
commands:
|
||||||
@ -226,12 +188,12 @@ steps:
|
|||||||
- 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" .
|
- 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
|
- make clean fastnetmon all
|
||||||
when:
|
when:
|
||||||
status: [success, failure]
|
status: [success]
|
||||||
depends_on: [build-install nDPI, apply-patch]
|
depends_on: [apply-patch]
|
||||||
|
|
||||||
- name: print shared object deps
|
- name: print shared object deps
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: fedora:34
|
image: immawanderer/fedora-cpp:linux-amd64
|
||||||
volumes:
|
volumes:
|
||||||
- name: usrcache
|
- name: usrcache
|
||||||
path: /usr
|
path: /usr
|
||||||
@ -243,10 +205,8 @@ steps:
|
|||||||
|
|
||||||
- name: build fastnetmon explicit features
|
- name: build fastnetmon explicit features
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: fedora:34
|
image: immawanderer/fedora-cpp:linux-amd64
|
||||||
volumes:
|
volumes:
|
||||||
- name: etc
|
|
||||||
path: /etc
|
|
||||||
- name: usrcache
|
- name: usrcache
|
||||||
path: /usr
|
path: /usr
|
||||||
commands:
|
commands:
|
||||||
@ -263,10 +223,8 @@ steps:
|
|||||||
|
|
||||||
- name: fastnetmon subfolder build
|
- name: fastnetmon subfolder build
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: fedora:34
|
image: immawanderer/fedora-cpp:linux-amd64
|
||||||
volumes:
|
volumes:
|
||||||
- name: etc
|
|
||||||
path: /etc
|
|
||||||
- name: usrcache
|
- name: usrcache
|
||||||
path: /usr
|
path: /usr
|
||||||
commands:
|
commands:
|
||||||
@ -280,11 +238,9 @@ steps:
|
|||||||
- ldd fastnetmon_client
|
- ldd fastnetmon_client
|
||||||
when:
|
when:
|
||||||
status: [success, failure]
|
status: [success, failure]
|
||||||
depends_on: [build fastnetmon explicit features]
|
depends_on: [build fastnetmon]
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: usrcache
|
- name: usrcache
|
||||||
temp: {}
|
temp: {}
|
||||||
- name: etc
|
|
||||||
temp: {}
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user