From 1d83dd2a1c21051b7a6ed43507fd60438c1275ee Mon Sep 17 00:00:00 2001 From: Gulliver Date: Wed, 17 Nov 2021 23:10:14 +0100 Subject: [PATCH 1/2] initial version of drone yaml updated installed packages and pip packages --- .drone.yml | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ea29f2a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,59 @@ +kind: pipeline +type: docker +name: amd64-pull + +platform: + os: linux + arch: amd64 + +steps: +- name: build-and-test + image: ubuntu:focal + + commands: + - export DEBIAN_FRONTEND=noninteractive + - apt-get -y update + - apt-get -y install graphviz plantuml make python3-pip git + - pip install -r requirements.txt + - make bundle + +trigger: + branch: + - main + event: + - pull_request + +--- +kind: pipeline +type: docker +name: amd64-master + +platform: + os: linux + arch: amd64 + +steps: +- name: build-and-test + image: ubuntu:focal + environment: + GH_REPO_TOKEN: + from_secret: repo_token + GH_REPO_NAME: crow + GH_REPO_REF: github.com/crowcpp/crow.git + THEME_REPO_REF: github.com/crowcpp/darxygen.git + + commands: + - export DEBIAN_FRONTEND=noninteractive + - export DRONE_BUILD_DIR=$PWD + - apt-get -y update + - apt-get -y install graphviz plantuml make python3 python3-pip git + - pip install -r requirements.txt + - make -j4 bundle + +trigger: + branch: + - master + event: + - push + + -- 2.30.2 From c4767bc17fb096624143dbd365fb8ec545d74de2 Mon Sep 17 00:00:00 2001 From: Gulliver Date: Wed, 17 Nov 2021 23:39:37 +0100 Subject: [PATCH 2/2] added recursive git cloning +apt update --- .drone.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index ea29f2a..7e31537 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,6 +7,13 @@ platform: arch: amd64 steps: +- name: submodules + image: ubuntu:focal + commands: + - apt-get -y update + - apt-get -y install git + - git submodule update --init --recursive + - name: build-and-test image: ubuntu:focal @@ -33,14 +40,15 @@ platform: arch: amd64 steps: +- name: submodules + image: ubuntu:focal + commands: + - apt-get -y update + - apt-get -y install git + - git submodule update --init --recursive + - name: build-and-test image: ubuntu:focal - environment: - GH_REPO_TOKEN: - from_secret: repo_token - GH_REPO_NAME: crow - GH_REPO_REF: github.com/crowcpp/crow.git - THEME_REPO_REF: github.com/crowcpp/darxygen.git commands: - export DEBIAN_FRONTEND=noninteractive -- 2.30.2