core-legacy/.drone.yml

67 lines
1.3 KiB
YAML
Raw Normal View History

2020-06-29 16:35:09 +00:00
kind: pipeline
name: default
workspace:
path: /drone/src
2020-06-29 16:35:09 +00:00
steps:
2020-06-30 22:28:19 +00:00
- name: download-controller
2020-06-29 22:26:36 +00:00
image: plugins/download
settings:
2020-06-30 22:28:19 +00:00
source: https://git.serguzim.me/emgauwa/controller/archive/master.tar.gz
destination: emgauwa-controller.tar.gz
when:
2020-06-30 22:40:18 +00:00
ref:
- refs/heads/master
- refs/tags/v*
2020-06-30 22:28:19 +00:00
- 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:
2020-06-30 22:40:18 +00:00
ref:
- refs/heads/testing
- refs/tags/testing-*
2020-06-30 22:28:19 +00:00
- name: build-controller
image: serguzim/emgauwa-builder
pull: always
commands:
2020-06-30 22:28:19 +00:00
- tar xzf emgauwa-controller.tar.gz
- cd controller
- mkdir build
- cd build
- cmake -DWIRING_PI_DEBUG=on ..
- make
2020-06-29 22:26:36 +00:00
- name: test
image: serguzim/emgauwa-builder
pull: always
environment:
EMGAUWA_CONTROLLER_EXE: /drone/src/controller/build/controller
2020-06-29 22:26:36 +00:00
commands:
- mkdir build
- cd build
- cmake ..
- make test
2020-06-29 16:35:09 +00:00
2020-06-30 22:28:19 +00:00
- 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
2020-06-30 22:40:18 +00:00
trigger:
ref:
include:
- refs/heads/master
- refs/heads/testing
- refs/tags/**