2021-06-19 14:42:38 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
image:
|
|
|
|
tasks:
|
|
|
|
-
|
|
|
|
steps:
|
|
|
|
- name: submodules
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
2023-02-12 07:54:29 +00:00
|
|
|
- git submodule update --init --recursive --depth 1
|
2021-06-19 14:42:38 +00:00
|
|
|
|
|
|
|
- name: firmware
|
2021-07-07 20:28:58 +00:00
|
|
|
image: docker-repo.service.intern.lab.or.it:5000/fiatlux-build-env
|
|
|
|
depends_on: [ submodules ]
|
2021-06-19 14:42:38 +00:00
|
|
|
commands:
|
|
|
|
- export PATH=$(pwd)/modules/sdk/xtensa-lx106-elf/bin:$PATH
|
2023-02-12 07:54:29 +00:00
|
|
|
- apt update
|
|
|
|
- apt install -y minify
|
2021-06-19 14:42:38 +00:00
|
|
|
- make firmware -j$(nproc)
|
|
|
|
|
|
|
|
- name: pcb
|
2023-02-12 07:54:29 +00:00
|
|
|
image: setsoft/kicad_auto:ki6
|
2021-06-19 14:42:38 +00:00
|
|
|
commands:
|
|
|
|
- apt update
|
|
|
|
- apt install -y make zip
|
2023-02-11 07:24:41 +00:00
|
|
|
# - make pcb -j$(nproc) BOARD=fiatlux
|
|
|
|
# - make pcb -j$(nproc) BOARD=fiatlux_cc48
|
2021-06-19 14:42:38 +00:00
|
|
|
|
|
|
|
- name: case
|
|
|
|
image: debian:sid
|
|
|
|
commands:
|
|
|
|
- apt update
|
|
|
|
- apt install -y make
|
|
|
|
- make case -j$(nproc)
|
|
|
|
|
|
|
|
- name: unittest
|
|
|
|
image: debian:sid
|
2021-07-07 20:28:58 +00:00
|
|
|
depends_on: [ firmware ]
|
2021-06-19 14:42:38 +00:00
|
|
|
commands:
|
|
|
|
- apt update
|
|
|
|
- apt install -y make
|
|
|
|
- make -C firmware unittest
|
|
|
|
|
|
|
|
- name: systest
|
|
|
|
image: debian:sid
|
|
|
|
depends_on: [ firmware ]
|
|
|
|
commands:
|
|
|
|
- apt update
|
|
|
|
- apt install -y make
|
|
|
|
- make -C firmware systest
|
|
|
|
|
|
|
|
- name: gitea_release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
depends_on: [ firmware, pcb, case, unittest, systest ]
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: j3d1_droneio_key
|
|
|
|
base_url: https://git.neulandlabor.de/
|
|
|
|
files:
|
|
|
|
- firmware/firmware/fiatlux.bin
|
2021-09-06 21:21:43 +00:00
|
|
|
- firmware/otaflash.py
|
2022-09-22 19:48:36 +00:00
|
|
|
- pcb/fiatlux_pcb.zip
|
|
|
|
- pcb/fiatlux_cc48_pcb.zip
|
2021-06-19 14:42:38 +00:00
|
|
|
checksum:
|
|
|
|
- sha512
|
|
|
|
- md5
|
2023-02-12 07:54:29 +00:00
|
|
|
title: fiatlux
|
2021-06-19 14:42:38 +00:00
|
|
|
when:
|
|
|
|
event: tag
|