remove drone CI

This commit is contained in:
2024-06-06 15:18:52 +02:00
parent 9ed774c44e
commit c942369745
3 changed files with 48 additions and 29 deletions

View File

@@ -1,18 +0,0 @@
kind: pipeline
type: docker
name: default
steps:
- name: pre-commit
image: iamthefij/drone-pre-commit:latest
commands:
- apt-get update && apt-get install -y cmake
- curl https://sh.rustup.rs -sSf | bash -s -- -y
- export PATH="/root/.cargo/bin:$${PATH}"
- pre-commit run --all-files
- name: test
image: rust:latest
commands:
- apt-get update && apt-get install -y cmake
- cargo build --verbose --all
- cargo test --verbose --all

View File

@@ -9,18 +9,58 @@ env:
CARGO_TERM_COLOR: always
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.1
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update
- run: sudo apt-get install -y cmake
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build
run: cargo build --verbose
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update
- run: sudo apt-get install -y cmake
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run tests
run: cargo test --verbose
run: cargo test --verbose --all-features
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update
- run: sudo apt-get install -y cmake
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- name: Run clippy
run: cargo clippy
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update
- run: sudo apt-get install -y cmake
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update
- run: sudo apt-get install -y cmake
- uses: actions/setup-python@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- uses: pre-commit/action@v3.0.1

View File

@@ -4,9 +4,6 @@
<p align="center">
Ohrwurm
</p>
<p align="center">
<a href="https://drone.jheuel.boosted.science/jheuel/ohrwurm"><img src="https://drone.jheuel.boosted.science/api/badges/jheuel/ohrwurm/status.svg"></a>
</p>
# Deployment
Create a `.env` environment file that contains the `DISCORD_TOKEN` and `DISCORD_APP_ID` of your bot, then build the container with `docker-compose build` before running it with `docker-compose up`.