fastnetmon-ng/.drone.yml

104 lines
1.8 KiB
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: pull
platform:
os: linux
arch: amd64
trigger:
branch: [development]
event: [push]
steps:
2021-03-29 13:47:10 +02:00
- name: pull-fedora:34
pull: always
2021-03-29 13:47:10 +02:00
image: fedora:34
depends_on: [clone]
commands:
- uname -r
- name: pull-alpine
pull: always
image: alpine
depends_on: [clone]
commands:
- uname -r
2021-03-28 18:51:42 +02:00
---
kind: pipeline
type: docker
name: build-single-step
platform:
os: linux
arch: amd64
depends_on:
- pull
2021-03-28 18:51:42 +02:00
trigger:
branch: [development]
event: [push]
steps:
- name: build
pull: always
2021-03-29 13:47:10 +02:00
image: fedora:34
2021-03-28 18:51:42 +02:00
commands:
- dnf install -y perl wget
2021-03-28 18:51:42 +02:00
- 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
depends_on:
- pull
2021-03-28 18:51:42 +02:00
trigger:
branch: [development]
event: [push]
steps:
- name: install_required_packaged
pull: always
2021-03-29 13:47:10 +02:00
image: fedora:34
2021-03-28 18:51:42 +02:00
commands:
- dnf install -y perl wget
2021-03-28 18:51:42 +02:00
- perl src/fastnetmon_build.pl --install_dependency_packages_only
- name: install_gcc
pull: always
2021-03-29 13:47:10 +02:00
image: fedora:34
2021-03-28 18:51:42 +02:00
commands:
- dnf install -y perl wget
2021-03-28 18:51:42 +02:00
- perl src/fastnetmon_build.pl --build_gcc_only
- name: install_dependencies
pull: always
2021-03-29 13:47:10 +02:00
image: fedora:34
2021-03-28 18:51:42 +02:00
commands:
- dnf install -y perl wget
2021-03-28 18:51:42 +02:00
- 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]