fix: controller executable build in pipeline

This commit is contained in:
Tobias Reisinger 2020-06-30 01:54:05 +02:00
parent ed0d7956aa
commit ea55dc973b

View file

@ -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 ..