added dronefile #1

Merged
JakeHillion merged 1 commits from drone into main 2022-07-20 23:20:12 +01:00

61
.drone.yml Normal file
View File

@ -0,0 +1,61 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: react
image: node:18
commands:
- cd gui/
- npm install
- npm run build
depends_on:
- submodules
- name: vendor
image: rust:1.62
commands:
- mkdir .cargo
- cargo vendor > .cargo/config
- name: format
image: rust:1.62
commands:
- rustup component add rustfmt
- cargo fmt --all -- --check
depends_on:
- vendor
- name: lint
image: rust:1.62
commands:
- rustup component add clippy
- cargo clippy --quiet --target-dir target_clippy/ --all-targets -- -D warnings
depends_on:
- vendor
- name: test
image: rust:1.62
commands:
- cargo test --target-dir target_test/
depends_on:
- vendor
- name: build
image: rust:1.62
commands:
- cargo build
depends_on:
- vendor
- react
---
kind: signature
hmac: 91882102a1af196631e2fcf42d5d0d4012b8ccd9bab1647a073fd06ee114b581
...