Created
May 19, 2020 18:36
-
-
Save suru-dissanaike/83b7dca8213496496a3040baf6cd7268 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image: node:12.16 | |
| cache: | |
| untracked: true | |
| key: "$CI_COMMIT_REF_NAME" | |
| paths: | |
| - node_modules/ | |
| stages: | |
| - install | |
| - static-code-analysis | |
| - dynamic-code-analysis | |
| install: | |
| stage: install | |
| script: | |
| - npm install | |
| jshint: | |
| stage: static-code-analysis | |
| allow_failure: true | |
| script: | |
| - npm run jshint | |
| jscpd: | |
| stage: static-code-analysis | |
| allow_failure: true | |
| script: | |
| - npm run jscpd | |
| test_dynamic: | |
| stage: dynamic-code-analysis | |
| script: | |
| - npm run test | |
| coverage: /All files\s*\|\s*([\d\.]+)/ | |
| artifacts: | |
| when: always | |
| reports: | |
| junit: ./junit.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment