Initial repository setup #1
59
.drone.yml
Normal file
59
.drone.yml
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/target
|
5
Cargo.lock
generated
Normal file
5
Cargo.lock
generated
Normal 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
5
Cargo.toml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[workspace]
|
||||||
|
|
||||||
|
members = [
|
||||||
|
"plot",
|
||||||
|
]
|
9
plot/Cargo.toml
Normal file
9
plot/Cargo.toml
Normal 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
3
plot/src/main.rs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user