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-08-18 11:59:49 +00:00
|
|
|
- name: download-controller-main
|
2020-06-29 22:26:36 +00:00
|
|
|
image: plugins/download
|
|
|
|
settings:
|
2020-08-10 22:10:59 +00:00
|
|
|
source: https://git.serguzim.me/emgauwa/controller/archive/main.tar.gz
|
2020-06-30 22:28:19 +00:00
|
|
|
destination: emgauwa-controller.tar.gz
|
|
|
|
when:
|
2020-06-30 22:40:18 +00:00
|
|
|
ref:
|
2020-08-10 22:10:59 +00:00
|
|
|
- refs/heads/main
|
2020-08-18 11:58:58 +00:00
|
|
|
- refs/tags/v*
|
|
|
|
|
2020-08-18 11:59:49 +00:00
|
|
|
- name: download-controller-testing
|
2020-08-18 11:58:58 +00:00
|
|
|
image: plugins/download
|
|
|
|
settings:
|
|
|
|
source: https://git.serguzim.me/emgauwa/controller/archive/testing.tar.gz
|
|
|
|
destination: emgauwa-controller.tar.gz
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/heads/testing
|
|
|
|
- refs/tags/testing-v*
|
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-09-03 22:28:49 +00:00
|
|
|
- tar xzf emgauwa-controller.tar.gz
|
|
|
|
- cd controller
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake -DWIRING_PI_DEBUG=on ..
|
|
|
|
- make
|
2020-06-29 23:54:05 +00:00
|
|
|
|
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
|
2020-11-19 15:44:00 +00:00
|
|
|
checksum:
|
|
|
|
- md5
|
|
|
|
- sha256
|
|
|
|
- sha512
|
2020-06-30 22:28:19 +00:00
|
|
|
files:
|
2020-11-19 15:44:00 +00:00
|
|
|
- emgauwa-core.conf
|
2020-11-19 15:56:34 +00:00
|
|
|
title: ${DRONE_TAG}
|
2020-11-19 15:44:00 +00:00
|
|
|
|
2020-06-30 22:28:19 +00:00
|
|
|
when:
|
|
|
|
event: tag
|
2020-06-30 22:40:18 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
include:
|
2020-08-10 22:10:59 +00:00
|
|
|
- refs/heads/main
|
2020-08-18 11:58:58 +00:00
|
|
|
- refs/heads/testing
|
2020-06-30 22:40:18 +00:00
|
|
|
- refs/tags/**
|