fix: drone testing

This commit is contained in:
Tobias Reisinger 2020-07-01 00:28:19 +02:00
parent 4e20342f20
commit 89f60b5044

View file

@ -5,18 +5,37 @@ workspace:
path: /drone/src
steps:
- name: download
- name: download-controller
image: plugins/download
settings:
source: http://vmi366681.contaboserver.net:6423/archive/emgauwa-controller-testing/7/emgauwa-controller-testing.tar.gz
destination: emgauwa-controller-testing.tar.gz
source: https://git.serguzim.me/emgauwa/controller/archive/master.tar.gz
destination: emgauwa-controller.tar.gz
when:
branch: master
- name: download-controller-testing
image: plugins/download
settings:
source: https://git.serguzim.me/emgauwa/controller/archive/testing.tar.gz
destination: emgauwa-controller.tar.gz
when:
branch: testing
- name: download-controller-dev
image: plugins/download
settings:
source: https://git.serguzim.me/emgauwa/controller/archive/dev.tar.gz
destination: emgauwa-controller.tar.gz
when:
branch:
exclude:
- master
- testing
- name: prepare-controller
- name: build-controller
image: serguzim/emgauwa-builder
pull: always
commands:
- tar xzf emgauwa-controller-testing.tar.gz
- cd emgauwa-controller-testing
- tar xzf emgauwa-controller.tar.gz
- cd controller
- mkdir build
- cd build
- cmake -DWIRING_PI_DEBUG=on ..
@ -33,6 +52,14 @@ steps:
- cmake ..
- make test
trigger:
branch:
- dev
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://git.serguzim.me
files:
- build/core
- build/core.ini
when:
event: tag