forked from Ivasoft/geovisio-website
44 lines
799 B
YAML
44 lines
799 B
YAML
stages:
|
|
- 'Install'
|
|
- 'Test'
|
|
- 'Deploy'
|
|
|
|
before_script:
|
|
## chmod is unfortunately currently mandatory : https://github.com/nodejs/docker-node/issues/661
|
|
- npm install -g yarn@1.22.19 && chmod +x /usr/local/lib/node_modules/yarn/bin/yarn.js
|
|
|
|
install:
|
|
stage: Install
|
|
image: node:18.13.0
|
|
script:
|
|
- yarn install
|
|
artifacts:
|
|
name: 'artifacts'
|
|
untracked: true
|
|
expire_in: 30 mins
|
|
paths:
|
|
- .yarn/
|
|
- node_modules/
|
|
|
|
test:
|
|
stage: Test
|
|
image: node:18.13.0
|
|
script:
|
|
- yarn test:unit
|
|
dependencies:
|
|
- install
|
|
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
|
|
|
|
deploy:
|
|
stage: Deploy
|
|
image: node:18.13.0
|
|
cache:
|
|
paths:
|
|
- node_modules
|
|
variables:
|
|
CI: 1
|
|
script:
|
|
- yarn install
|
|
- yarn upgrade geovisio@develop
|
|
- yarn build
|