From 4f8075ff6cebb3808fc33f179a4e517c123300a8 Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Sat, 6 Jun 2020 21:17:34 +0100 Subject: [PATCH] Added CentOS 7 and CentOS 8 builds for rpm packages --- .circleci/config.yml | 78 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 76 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cab4aa8d..a1f86ae6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -448,7 +448,43 @@ jobs: - run: cd src; mkdir -p build; cd build; cmake ..; make - run: /opt/fastnetmon/fastnetmon --configuration_check - store_artifacts: - path: /tmp/fastnetmon_install.log + path: /tmp/fastnetmon_install.log + centos7_all_libs: + docker: + - image: centos:centos7.8.2003 + steps: + - checkout + - run: yum install -y perl wget + - run: + name: install_required_packages + no_output_timeout: 20m + command: perl src/fastnetmon_install.pl --install_dependency_packages_only + - restore_cache: + keys: + - "{{ .Environment.CIRCLE_JOB }}_dependencies_27_05_2020" + - run: + name: install_dependencies + no_output_timeout: 20m + command: perl src/fastnetmon_install.pl --use-git-master -api --gobgp --boost --do-not-use-mirror + - run: + name: collect_debug + command: cat /tmp/fastnetmon_install.log + when: on_fail + - save_cache: + key: "{{ .Environment.CIRCLE_JOB }}_dependencies_27_05_2020" + paths: + - /opt + - /usr/include/linux/pf_ring.h + - run: perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz + - store_artifacts: + path: /opt/fastnetmon_libraries_bundle.tar.gz + - store_artifacts: + path: /tmp/fastnetmon_install.log + - run: src/scripts/build_any_package.pl rpm /opt/fastnetmon_libraries_bundle.tar.gz 1.1.6 + - store_artifacts: + path: /tmp/result_data/fastnetmon-1.1.6-1.el7.x86_64.rpm + - run: cp src/fastnetmon.conf /etc/fastnetmon.conf + - run: /opt/fastnetmon/fastnetmon --configuration_check centos8: docker: - image: centos:centos8.1.1911 @@ -477,7 +513,43 @@ jobs: - run: cd src; mkdir -p build; cd build; cmake ..; make - run: /opt/fastnetmon/fastnetmon --configuration_check - store_artifacts: - path: /tmp/fastnetmon_install.log + path: /tmp/fastnetmon_install.log + centos8_all_libs: + docker: + - image: centos:centos8.1.1911 + steps: + - checkout + - run: yum install -y perl wget + - run: + name: install_required_packages + no_output_timeout: 20m + command: perl src/fastnetmon_install.pl --install_dependency_packages_only + - restore_cache: + keys: + - "{{ .Environment.CIRCLE_JOB }}_dependencies_27_05_2020" + - run: + name: install_dependencies + no_output_timeout: 20m + command: perl src/fastnetmon_install.pl --use-git-master -api --gobgp --boost --do-not-use-mirror + - run: + name: collect_debug + command: cat /tmp/fastnetmon_install.log + when: on_fail + - save_cache: + key: "{{ .Environment.CIRCLE_JOB }}_dependencies_27_05_2020" + paths: + - /opt + - /usr/include/linux/pf_ring.h + - run: perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz + - store_artifacts: + path: /opt/fastnetmon_libraries_bundle.tar.gz + - store_artifacts: + path: /tmp/fastnetmon_install.log + - run: src/scripts/build_any_package.pl rpm /opt/fastnetmon_libraries_bundle.tar.gz 1.1.6 + - store_artifacts: + path: /tmp/result_data/fastnetmon-1.1.6-1.el8.x86_64.rpm + - run: cp src/fastnetmon.conf /etc/fastnetmon.conf + - run: /opt/fastnetmon/fastnetmon --configuration_check workflows: version: 2 all_distros: @@ -496,4 +568,6 @@ workflows: - centos6 - centos6_all_libs - centos7 + - centos7_all_libs - centos8 + - centos8_all_libs