Add drone runner

shader120
Luke D. Jones 2022-05-24 21:23:34 +12:00
parent aad97b3c74
commit d4b8ed3c85
1 changed files with 9 additions and 17 deletions

View File

@ -1,24 +1,16 @@
kind: pipeline
type: docker
name: default
name: default
steps:
- name: test
image: rust:1.40
image: rust:1.61
commands:
- apt update
- apt install -y libsdl2-dev libsdl2-gfx-dev
- cargo check --verbose --all
- cargo test --verbose --all
- apt update
- apt install -y libsdl2-dev libsdl2-gfx-dev libsdl2-mixer-dev cmake
- cargo check --verbose --all
- cargo test --verbose --all
- name: rustfmt
image: rust:1.40
image: rust:1.61
commands:
- rustup component add rustfmt
- cargo fmt --all -- --check
- name: clippy
image: rust:1.40
commands:
- rustup component add clippy
- cargo clippy --all
- rustup component add rustfmt
- cargo fmt --all -- --check