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