remove drone CI
This commit is contained in:
18
.drone.yml
18
.drone.yml
@@ -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
|
|
||||||
56
.github/workflows/rust.yml
vendored
56
.github/workflows/rust.yml
vendored
@@ -9,18 +9,58 @@ env:
|
|||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
- name: Build
|
||||||
run: cargo build --verbose
|
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
|
- 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
|
||||||
|
|||||||
@@ -4,9 +4,6 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
Ohrwurm
|
Ohrwurm
|
||||||
</p>
|
</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
|
# 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`.
|
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`.
|
||||||
|
|||||||
Reference in New Issue
Block a user