From ea55dc973bc67e7cb6d661e650dccc4db2bc6438 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Tue, 30 Jun 2020 01:54:05 +0200 Subject: [PATCH] fix: controller executable build in pipeline --- .drone.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index cb2d1b3..2f8d38c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,18 +1,34 @@ kind: pipeline name: default +workspace: + path: /drone/src + steps: - name: download image: plugins/download settings: - source: http://vmi366681.contaboserver.net:6423/archive/emgauwa-controller-testing/6/controller - destination: controller -- name: test + source: http://vmi366681.contaboserver.net:6423/archive/emgauwa-controller-testing/6/emgauwa-controller-testing.tar.gz + destination: emgauwa-controller-testing.tar.gz + +- name: prepare-controller image: serguzim/emgauwa-builder pull: always + commands: + - tar xzf emgauwa-controller-testing.tar.gz + - cd emgauwa-controller-testing + - mkdir build + - cd build + - cmake -DWIRING_PI_DEBUG=on .. + - make + +- name: test + image: serguzim/emgauwa-builder + pull: always + environment: + EMGAUWA_CONTROLLER_EXE: /drone/src/emgauwa-controller-testing/build/controller commands: - chmod +x controller - - export EMGAUWA_CONTROLLER_EXE=/drone/src/controller - mkdir build - cd build - cmake ..