From 4465770b8f785c4688132c0213321809729483f0 Mon Sep 17 00:00:00 2001 From: JakeHillion Date: Mon, 14 Jun 2021 15:30:46 +0000 Subject: [PATCH] Initial repository setup (#1) Co-authored-by: Jake Hillion Reviewed-on: https://gitea.hillion.co.uk/JakeHillion/unnamed-crypto/pulls/1 Co-authored-by: JakeHillion Co-committed-by: JakeHillion --- .drone.yml | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 1 + Cargo.lock | 5 ++++ Cargo.toml | 5 ++++ plot/Cargo.toml | 9 ++++++++ plot/src/main.rs | 3 +++ 6 files changed, 82 insertions(+) create mode 100644 .drone.yml create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 plot/Cargo.toml create mode 100644 plot/src/main.rs diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..71e83ee --- /dev/null +++ b/.drone.yml @@ -0,0 +1,59 @@ +--- +kind: pipeline +type: docker +name: default + +steps: + - name: format + image: rust:1.52 + commands: + - rustup component add rustfmt + - cargo fmt --all -- --check + + - name: vendor + image: rust:1.52 + volumes: + - name: cache + path: /vendor + commands: + - mkdir .cargo + - cargo vendor /vendor > .cargo/config + + - name: test + image: rust:1.52 + volumes: + - name: cache + path: /vendor + commands: + - cargo test + + - name: build + image: rust:1.52 + volumes: + - name: cache + path: /vendor + commands: + - cargo build --release + + - name: release + image: plugins/gitea-release + settings: + api_key: + from_secret: gitea_token + base_url: https://gitea.hillion.co.uk + files: + - target/release/plot + checksum: + - sha256 + when: + event: + - tag + +volumes: + - name: cache + temp: {} +--- +kind: signature +hmac: d7c37edb0847754a42bb7ce0a5d1107690cd061201ac6e6154eef9845bbe0e80 + +... diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..59963ca --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,5 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "plot" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..f73f4c8 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,5 @@ +[workspace] + +members = [ + "plot", +] \ No newline at end of file diff --git a/plot/Cargo.toml b/plot/Cargo.toml new file mode 100644 index 0000000..486525f --- /dev/null +++ b/plot/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "plot" +version = "0.1.0" +authors = ["Jake Hillion "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/plot/src/main.rs b/plot/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/plot/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}