aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..88cdb4e
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,17 @@
+image: "rust"
+
+tests:
+ script:
+ - cargo test
+
+format:
+ before_script:
+ - rustup component add rustfmt
+ script:
+ - cargo fmt -- --check
+
+clippy:
+ before_script:
+ - rustup component add clippy
+ script:
+ - cargo clippy