From 9112ece292c88fb7b14aeafaecd2cf96bbfa2456 Mon Sep 17 00:00:00 2001 From: Michal Stopyra Date: Wed, 26 Oct 2022 18:43:36 +0000 Subject: [PATCH] Add GitLab CI --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml 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