Verified Commit 7b021095 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Added CI configuration

parent 45fa0e19
Pipeline #4225 passed with stage
in 1 minute and 6 seconds
stages:
- test
- deploy
pages:
stage: test
image: node:latest
before_script:
- yarn install
script:
- yarn test:unit
cache:
key: front_node_modules
paths:
- "node_modules"
pages:
stage: deploy
image: node:latest
before_script:
- yarn install
script:
- yarn build
- rm -rf public
- mv dist public
# ugly hack from https://gitlab.com/gitlab-org/gitlab-pages/issues/23#note_57499396
# until Gitlab Pages has better support for SPA
- cp public/index.html public/404.html
# Gzip compression, cf https://webd97.de/post/gitlab-pages-compression/
- gzip -k -6 $(find public -type f)
cache:
key: front_node_modules
paths:
- "node_modules"
artifacts:
paths:
- public/
only:
- master@retribute.me/webclient
tags:
- docker
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