From cc64a91526f9eba7e9e821c14a8b69324ee2b087 Mon Sep 17 00:00:00 2001 From: Le Libre Au Quotidien <contact@lelibreauquotidien.fr> Date: Sun, 18 Jul 2021 14:54:31 +0000 Subject: [PATCH] Add CI (test) --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..5d97b46fb --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,29 @@ +image: rust:alpine + +stages: + - lint + - test + - build + - fmt + +lint: + stage: lint + script: + - cargo clippy + +test: + stage: test + script: + - cargo test + +build: + stage: build + script: + - cargo build --release + artifacts: + paths: + - target +fmt: + stage: fmt + script: + - cargo fmt \ No newline at end of file -- GitLab