update gitlab-ci
This commit is contained in:
parent
5d89fbbd46
commit
7ae8780d63
1 changed files with 37 additions and 14 deletions
|
@ -1,24 +1,47 @@
|
||||||
image: node:latest
|
image: node:latest
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- Preparation
|
||||||
|
- Build
|
||||||
|
- Test
|
||||||
|
|
||||||
lint:
|
Install Dependencies:
|
||||||
stage: test
|
stage: Preparation
|
||||||
before_script:
|
cache:
|
||||||
- npm install
|
key: $CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
- npm ci
|
||||||
|
only:
|
||||||
|
changes:
|
||||||
|
- package-lock.json
|
||||||
|
|
||||||
compile:
|
Build:
|
||||||
stage: test
|
stage: Build
|
||||||
before_script:
|
cache:
|
||||||
- npm install
|
key: $CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
policy: pull
|
||||||
script:
|
script:
|
||||||
- npm run build
|
- npm run build
|
||||||
# test:
|
|
||||||
# stage: test
|
Lint:
|
||||||
# before_script:
|
stage: Test
|
||||||
# - npm install
|
cache:
|
||||||
|
key: $CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
policy: pull
|
||||||
|
script:
|
||||||
|
- npm run lint
|
||||||
|
# Test:
|
||||||
|
# stage: Test
|
||||||
|
# cache:
|
||||||
|
# key: $CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
|
||||||
|
# paths:
|
||||||
|
# - node_modules/
|
||||||
|
# policy: pull
|
||||||
# script:
|
# script:
|
||||||
# - npm test
|
# - npm test
|
||||||
|
|
Loading…
Reference in a new issue