Skip to content
Snippets Groups Projects
Commit b1d7e88d authored by Albin Henriksson's avatar Albin Henriksson
Browse files

#2 add .gitlab-ci.yml file

parent 9218c8f2
No related branches found
No related tags found
2 merge requests!8Issue/2 test front end,!6Issue/2 test front end
image: node:10
stages:
- install
- build
- quality
install:
stage: install
script:
- npm install
artifacts:
name: "artifacts"
untracked: true
expire_in: 60 mins
paths:
- .npm/
- node_modules/
build:
stage: build
script:
- CI=false npm run build
artifacts:
paths:
- build
expire_in: 60 mins
dependencies:
- install
linting:
stage: quality
script:
- npm run lint
dependencies:
- install
test:unit:
stage: quality
script:
- npm run test:coverage
dependencies:
- install
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
test:e2e:
stage: quality
image: cypress/browsers:chrome69
dependencies:
- install
- build
script:
- npm run e2e:ci
artifacts:
paths:
- cypress/screenshots
- cypress/videos
expire_in: 1 day
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment