aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2021-12-04 14:40:04 +0000
committerMinteck <contact@minteck.org>2021-12-04 14:40:04 +0000
commit5a691cfd8009fc9cbb38104df6814e879629d362 (patch)
tree20593232a7951b9fb8af2ddff6303487af9016d8 /.gitlab-ci.yml
parentf61d0f3edd206f21053305607d62bf38e22e6187 (diff)
downloadmetranslator-api-5a691cfd8009fc9cbb38104df6814e879629d362.tar.gz
metranslator-api-5a691cfd8009fc9cbb38104df6814e879629d362.tar.bz2
metranslator-api-5a691cfd8009fc9cbb38104df6814e879629d362.zip
Add new file
Diffstat (limited to '.gitlab-ci.yml')
-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 $?