core-legacy/.drone.yml

73 lines
1.4 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-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-30 22:28:19 +00:00
- name: build-controller
image: serguzim/emgauwa-builder
pull: always
commands:
- 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
checksum:
- md5
- sha256
- sha512
2020-06-30 22:28:19 +00:00
files:
- emgauwa-core.conf
title: ${DRONE_TAG}
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/**