Commit 512ee232 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Added CI configuration.

No related merge requests found
Showing with 51 additions and 0 deletions
+51 -0
stages:
- vendor
- test
- build
.node:
tags: [docker]
stage: test
image: node:10
dependencies: [node_modules]
variables:
NPM_CONFIG_CACHE: "$CI_PROJECT_DIR/.npm"
node_modules:
extends: .node
stage: vendor
dependencies: []
script:
- npm install
artifacts:
name: $CI_JOB_NAME
expire_in: 1 day
paths:
- node_modules/
cache:
key: "$CI_COMMIT_REF_NAME-$CI_JOB_NAME"
paths:
- "$NPM_CONFIG_CACHE"
ng-lint:
extends: .node
script: npm run lint
ng-test:
extends: .node
before_script:
- apt-get update -yq
- apt-get install -yq --no-install-recommends xvfb firefox-esr xauth
script: xvfb-run npm run test
coverage: '/Lines.*:.*\d+\.\d+%/'
artifact:
name: code-coverage
expire_in: 1 month
paths:
- coverage
ng-build:
extends: .node
stage: build
script: npm run build
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment