summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScoots Dash (Minteck) <contact@minteck.org>2022-04-08 20:01:07 +0000
committerScoots Dash (Minteck) <contact@minteck.org>2022-04-08 20:01:07 +0000
commit123ed0130d8a650800a3dd503fda1f2232bb4158 (patch)
tree90270f5e375dc87ffcec8949d1e83832eec9af55
parentbf4e5ee82760e512cc6f0f37348c0c0b65c9f9b4 (diff)
downloadalicorn-trunk.tar.gz
alicorn-trunk.tar.bz2
alicorn-trunk.zip
Add new fileHEADtrunk
-rw-r--r--.gitlab-ci.yml14
1 files changed, 14 insertions, 0 deletions
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 $?