diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3f4455b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,42 @@ +image: node:latest + +stages: + - code-testing + - staging-server + - acceptance-testing + +linting: + stage: code-testing + script: + - npm install + - npm run linter + +dependency-checks: + stage: code-testing + script: + - npm install + - npm run dependency + +unit-testing: + stage: code-testing + script: + - npm install + - npm test + +code-coverage: + stage: code-testing + script: + - npm install + - npm run coverage + +coverage-report: + stage: staging-server + script: + - npm install + - npm run coverage + artifacts: + paths: + - docs + expire_in: 30 days + only: + - master