From 3f2fea044760226c31119d940b2edc7e00a68ae6 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Wed, 20 Jul 2022 23:04:16 +0100 Subject: [PATCH] added dronefile --- .drone.yml | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7f3e4ae --- /dev/null +++ b/.drone.yml @@ -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 + +... -- 2.46.0