diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..90dd635 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +image: "archlinux:latest" + +cargo:version: + before_script: + - pacman -Sy rustup base-devel --noconfirm + - rustup default stable + script: + - rustc --version && cargo --version + +cargo:clippy: + before_script: + - pacman -Sy rustup base-devel --noconfirm + - rustup default stable + - rustup component add clippy + script: + - cargo clippy --no-deps -- -D clippy::all + +cargo:fmt: + before_script: + - pacman -Sy rustup base-devel --noconfirm + - rustup default stable + - rustup component add rustfmt + script: + - cargo fmt --check