diff options
author | Minteck <contact@minteck.org> | 2021-12-21 14:48:10 +0000 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2021-12-21 14:48:10 +0000 |
commit | eb265706b33279474c9a5034f3cf6ba5e17ce540 (patch) | |
tree | fe065da3d3c35fd53741ffb09ba02b6c39dd3006 /.gitlab-ci.yml | |
parent | 758e0c4cf1a4b26d72bc19c61026779dd14fab74 (diff) | |
download | mint-eb265706b33279474c9a5034f3cf6ba5e17ce540.tar.gz mint-eb265706b33279474c9a5034f3cf6ba5e17ce540.tar.bz2 mint-eb265706b33279474c9a5034f3cf6ba5e17ce540.zip |
Add new file
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 14 |
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 $? |