From 9596694941a29c2423826c0f73f745411b9c89cd Mon Sep 17 00:00:00 2001 From: KAAAsS Date: Fri, 5 Feb 2021 18:32:21 +0800 Subject: [PATCH] Add Drone CI config --- .drone.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..c64e65a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,17 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: build + image: rust + environment: + SECRET_INPUT: + from_secret: secret_input + commands: + - cargo build --verbose --all + - cargo test --verbose --all + # Simple test + - 'echo "Input: $SECRET_INPUT"' + - cargo run $SECRET_INPUT > output + - 'echo "Output: " && cat output' \ No newline at end of file