SolarEnergy/.drone.yml

70 lines
1.5 KiB
YAML
Raw Normal View History

2024-10-14 20:22:56 +00:00
---
kind: pipeline
type: docker
name: default
steps:
- name: web_build
image: node:21
volumes:
- name: web_app
path: /tmp/web_build
commands:
- cd central_frontend
- npm install
- npm run build
- mv dist /tmp/web_build
- name: backend_check
image: rust
volumes:
- name: rust_registry
path: /usr/local/cargo/registry
commands:
- rustup component add clippy
- cd central_backend
- cargo clippy -- -D warnings
- cargo test
- name: custom_consumption_check
image: rust
volumes:
- name: rust_registry
path: /usr/local/cargo/registry
commands:
- rustup component add clippy
- cd custom_consumption
- cargo clippy -- -D warnings
- cargo test
depends_on:
- backend_check
- name: backend_compile
image: rust
volumes:
- name: rust_registry
path: /usr/local/cargo/registry
- name: web_app
path: /tmp/web_build
depends_on:
- backend_check
- web_build
commands:
- cd central_backend
- mv /tmp/web_build/dist static
- cargo build --release
- ls -lah target/release/central_backend
2024-10-14 20:28:13 +00:00
- name: esp32_compile
image: espressif/idf:v5.2.2 # FIXME : upgrade to 5.3.1
commands:
- cd esp32_device
2024-10-14 20:34:13 +00:00
- /opt/esp/entrypoint.sh idf.py build
2024-10-14 20:35:17 +00:00
- file build/main.bin
2024-10-14 20:28:13 +00:00
2024-10-14 20:22:56 +00:00
volumes:
- name: rust_registry
temp: {}
- name: web_app
temp: {}