Drone CI build pipeline #101
|
@ -0,0 +1,33 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: test-on-amd64
|
||||||
|
|
||||||
|
platform:
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: rustfmt
|
||||||
|
image: rust:buster
|
||||||
|
commands:
|
||||||
|
- rustup component add rustfmt
|
||||||
|
- cargo fmt --check
|
||||||
|
|
||||||
|
- name: clippy
|
||||||
|
image: rust:buster
|
||||||
|
commands:
|
||||||
|
- rustup component add clippy
|
||||||
|
- cargo clippy -- -D warnings
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
image: rust:buster
|
||||||
|
commands:
|
||||||
|
- cargo test
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: rust:buster
|
||||||
|
commands:
|
||||||
|
- cargo build
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- pull_request
|
File diff suppressed because it is too large
Load Diff
15
README.md
15
README.md
|
@ -4,6 +4,8 @@ _Better [Scuttlebutt](https://scuttlebutt.nz) cloud infrastructure as a hardware
|
||||||
|
|
||||||
[**_Support us on OpenCollective!_**](https://opencollective.com/peachcloud)
|
[**_Support us on OpenCollective!_**](https://opencollective.com/peachcloud)
|
||||||
|
|
||||||
|
[![Build Status](https://build.coopcloud.tech/api/badges/PeachCloud/peach-workspace/status.svg?ref=refs/heads/main)](https://build.coopcloud.tech/PeachCloud/peach-workspace)
|
||||||
|
|
||||||
## Background
|
## Background
|
||||||
|
|
||||||
- April 2018 project proposal: [`%HqwAsltORROCh4uyOq6iV+SsqU3OuNUevnq+5dwCqVI=.sha256`](https://viewer.scuttlebot.io/%25HqwAsltORROCh4uyOq6iV%2BSsqU3OuNUevnq%2B5dwCqVI%3D.sha256)
|
- April 2018 project proposal: [`%HqwAsltORROCh4uyOq6iV+SsqU3OuNUevnq+5dwCqVI=.sha256`](https://viewer.scuttlebot.io/%25HqwAsltORROCh4uyOq6iV%2BSsqU3OuNUevnq%2B5dwCqVI%3D.sha256)
|
||||||
|
@ -43,6 +45,17 @@ _Better [Scuttlebutt](https://scuttlebutt.nz) cloud infrastructure as a hardware
|
||||||
- [peach-patterns](https://github.com/peachcloud/peach-patterns) - Pattern library for the PeachCloud UI design system
|
- [peach-patterns](https://github.com/peachcloud/peach-patterns) - Pattern library for the PeachCloud UI design system
|
||||||
- [peach-web](https://github.com/peachcloud/peach-web) - A web interface for monitoring and interacting with the PeachCloud device
|
- [peach-web](https://github.com/peachcloud/peach-web) - A web interface for monitoring and interacting with the PeachCloud device
|
||||||
|
|
||||||
|
## Continuous Integration
|
||||||
|
|
||||||
|
[Drone CI](https://docs.drone.io/) is used to provide continuous integration for this workspace. The configuration file can be found in `.drone.yml` in the root of this repository. It is currently configured to run `cargo fmt`, `cargo clippy`, `cargo test` and `cargo build` on every `pull request` event. The pipeline runs on the AMD64 Debian Buster image from the official Rust Docker image repository.
|
||||||
|
|
||||||
|
The status of the current and previous CI builds can be viewed via the [Drone CI Build UI](https://build.coopcloud.tech/PeachCloud/peach-workspace) (kindly hosted by Co-op Cloud).
|
||||||
|
|
||||||
|
Adding `[CI SKIP]` to the end of a commit message results in the CI checks being skipped for the next event. For example:
|
||||||
|
|
||||||
|
`git commit -m "update readme [CI SKIP]"`
|
||||||
|
`git push origin main`
|
||||||
|
|
||||||
## Developer Diaries
|
## Developer Diaries
|
||||||
|
|
||||||
- [@ahdinosaur](https://github.com/ahdinosaur): `@6ilZq3kN0F+dXFHAPjAwMm87JEb/VdB+LC9eIMW3sa0=.ed25519`
|
- [@ahdinosaur](https://github.com/ahdinosaur): `@6ilZq3kN0F+dXFHAPjAwMm87JEb/VdB+LC9eIMW3sa0=.ed25519`
|
||||||
|
@ -56,4 +69,4 @@ _Better [Scuttlebutt](https://scuttlebutt.nz) cloud infrastructure as a hardware
|
||||||
- [GitHub](https://github.com/peachcloud)
|
- [GitHub](https://github.com/peachcloud)
|
||||||
- [Twitter](https://twitter.com/peachcloudorg)
|
- [Twitter](https://twitter.com/peachcloudorg)
|
||||||
- [Email](mailto:peachcloudorg@gmail.com)
|
- [Email](mailto:peachcloudorg@gmail.com)
|
||||||
- [OpenCollective](https://opencollective.com/peachcloud)
|
- [OpenCollective](https://opencollective.com/peachcloud)
|
||||||
|
|
|
@ -47,8 +47,8 @@ pub fn update_microservices() -> Result<(), PeachConfigError> {
|
||||||
cmd(&["apt-get", "update"])?;
|
cmd(&["apt-get", "update"])?;
|
||||||
// filter out peach-config from list of services
|
// filter out peach-config from list of services
|
||||||
let services_to_update: Vec<&str> = SERVICES
|
let services_to_update: Vec<&str> = SERVICES
|
||||||
.to_vec()
|
.iter()
|
||||||
.into_iter()
|
.copied()
|
||||||
.filter(|&x| x != "peach-config")
|
.filter(|&x| x != "peach-config")
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue