From ea58bdf4b001ffbf31498a9b76b34712bf67a4a4 Mon Sep 17 00:00:00 2001
From: Minteck <contact@minteck.org>
Date: Tue, 21 Dec 2021 16:11:51 +0000
Subject: Add new file

---
 .gitlab-ci.yml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..7adde58
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,14 @@
+# Generic Minteck GitLab CI/CD Checks
+# NodeJS applications
+image: node:current-buster
+
+before_script:
+  - apt-get update
+  - apt-get install -y git npm
+
+test:
+  script:
+    - npm install
+    - rm -Rfvd failed.log
+    - bash -c "rm failed.log; rm -f failed.log; find . -path ./node_modules -prune -o -name "*.js" \( -exec node -c {} \; -o -exec echo {} > failed.log \; \); echo $([ ! -s failed.log ]; echo $?); exit $([ ! -s failed.log ]; echo $?)"; echo $?
+    - bash -c "rm failed.log; rm -f failed.log; find . -path ./node_modules -prune -o -name "*.js" \( -exec node -c {} \; -o -exec echo {} > failed.log \; \); echo $([ ! -s failed.log ]; echo $?); exit $([ ! -s failed.log ]; echo $?)"; echo $?
-- 
cgit