aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 78f2ac21d64d27bdcd03f174d81ea99b5717fed3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Generic Minteck GitLab CI/CD Checks
# NodeJS applications
#     - Modified for minteck/metranslator-api
image: node:current-buster

before_script:
  - apt-get update
  - apt-get install -y git npm

test:
  script:
    - 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 $?