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