From 43a81d9ebf84c817987be650846601753d03463c Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 28 Mar 2021 18:51:42 +0200 Subject: [PATCH] ci: add .drone.yml --- .drone.yml | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..f148cf4d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,69 @@ +--- +kind: pipeline +type: docker +name: build-single-step + +platform: + os: linux + arch: amd64 + +trigger: + branch: [development] + event: [push] + +steps: +- name: build + pull: always + image: immawanderer/archlinux:latest + commands: + - pacman -Sy --needed --noconfirm perl wget + - perl src/fastnetmon_build.pl --install_dependency_packages_only + - perl src/fastnetmon_build.pl --build_gcc_only + - 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 + +--- +kind: pipeline +type: docker +name: build-multi-step + +platform: + os: linux + arch: amd64 + +trigger: + branch: [development] + event: [push] + +steps: +- name: install_required_packaged + pull: always + image: immawanderer/archlinux:latest + commands: + - pacman -Sy --needed --noconfirm perl wget + - perl src/fastnetmon_build.pl --install_dependency_packages_only + +- name: install_gcc + pull: always + image: immawanderer/archlinux:latest + commands: + - pacman -Sy --needed --noconfirm perl wget + - perl src/fastnetmon_build.pl --build_gcc_only + +- name: install_dependencies + pull: always + image: immawanderer/archlinux:latest + commands: + - pacman -Sy --needed --noconfirm perl wget + - 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: collect_debug + pull: always + image: alpine + commands: + - cat /tmp/fastnetmon_install.log + when: + status: [failure]