From 7aa4fe63c99a53454c1090865c9b73e52fa4f0f6 Mon Sep 17 00:00:00 2001
From: Stephen <stephen@stephendownward.ca>
Date: Sat, 10 Oct 2020 21:10:46 -0300
Subject: [PATCH] Gitlab CI

---
 .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++
 Cargo.toml     |  2 --
 2 files changed, 29 insertions(+), 2 deletions(-)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..f02a134
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,29 @@
+image: "rust:latest"
+
+stages:
+  - test
+  - build
+
+before_script:
+  - apt-get update -q && apt-get install mingw-w64 -yqq
+  - rustup component add rustfmt
+  - rustup component add clippy
+  - rustup target add x86_64-pc-windows-gnu
+
+test:
+  stage: test
+  script:
+    - cargo fmt -- --check
+    - cargo clippy --all-targets --all-features -- -D warnings
+    - cargo test
+
+build:
+  stage: build
+  script:
+    - cargo build --release
+    - cargo build --release --target x86_64-pc-windows-gnu
+  artifacts:
+    paths:
+      - target/release/dotacat
+      - target/x86_64-pc-windows-gnu/release/dotacat.exe
+
diff --git a/Cargo.toml b/Cargo.toml
index 3594911..256698c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,8 +11,6 @@ repository = "https://git.scd31.com/stephen/dotacat"
 keywords = ["cli", "rainbow", "cat", "colourful", "colorful"]
 categories = ["command-line-utilities"]
 
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
-
 [dependencies]
 colored = "2.0"
 rand = "0.7"
-- 
GitLab