Initial repository setup #1

Merged
JakeHillion merged 6 commits from init into testnet 2021-06-14 16:30:47 +01:00
6 changed files with 82 additions and 0 deletions

59
.drone.yml Normal file
View File

@ -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
...

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

5
Cargo.lock generated Normal file
View File

@ -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"

5
Cargo.toml Normal file
View File

@ -0,0 +1,5 @@
[workspace]
members = [
"plot",
]

9
plot/Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "plot"
version = "0.1.0"
authors = ["Jake Hillion <jake@hillion.co.uk>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

3
plot/src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}