Files
geovisio-website/.gitlab-ci.yml
Andreani Jean bbf5a9e61f wip
2023-05-11 15:18:16 +02:00

58 lines
1.1 KiB
YAML

stages:
- 'Install'
- 'Test'
- 'Deploy'
variables:
CYPRESS_CACHE_FOLDER: '$CI_PROJECT_DIR/cache/Cypress'
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
cache:
paths:
- node_modules
- cache/Cypress
- .yarn/
install:
stage: Install
image: node:18.13.0
script:
- yarn install
- ls
- ls node_modules
- ls node_modules/.bin
test:unit:
stage: Test
image: cypress/browsers:node-18.16.0-chrome-113.0.5672.92-1-ff-113.0-edge-113.0.1774.35-1
script:
- yarn test:unit
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
test:e2e:
stage: Test
image: node:18.13.0
script:
- ls
- ls node_modules
- ls node_modules/.bin
- yarn install -dev
- yarn runHeadless
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