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 kind: pipeline
name: default name: default
workspace:
path: /drone/src
steps: steps:
- name: download - name: download
image: plugins/download image: plugins/download
settings: settings:
source: http://vmi366681.contaboserver.net:6423/archive/emgauwa-controller-testing/6/controller source: http://vmi366681.contaboserver.net:6423/archive/emgauwa-controller-testing/6/emgauwa-controller-testing.tar.gz
destination: controller destination: emgauwa-controller-testing.tar.gz
- name: test
- name: prepare-controller
image: serguzim/emgauwa-builder image: serguzim/emgauwa-builder
pull: always 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: commands:
- chmod +x controller - chmod +x controller
- export EMGAUWA_CONTROLLER_EXE=/drone/src/controller
- mkdir build - mkdir build
- cd build - cd build
- cmake .. - cmake ..