2020-06-29 16:35:09 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
2020-06-29 23:54:05 +00:00
|
|
|
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-29 23:54:05 +00:00
|
|
|
|
2020-06-30 22:28:19 +00:00
|
|
|
- name: build-controller
|
2020-06-29 23:54:05 +00:00
|
|
|
image: serguzim/emgauwa-builder
|
|
|
|
pull: always
|
|
|
|
commands:
|
2020-06-30 22:28:19 +00:00
|
|
|
- tar xzf emgauwa-controller.tar.gz
|
|
|
|
- cd controller
|
2020-06-29 23:54:05 +00:00
|
|
|
- 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
|
2020-06-29 23:54:05 +00:00
|
|
|
environment:
|
2020-06-30 22:29:56 +00:00
|
|
|
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/**
|