2020-04-14 18:07:40 +00:00
|
|
|
image: node:12
|
|
|
|
|
|
|
|
variables:
|
|
|
|
NODE_ENV: test
|
|
|
|
|
2020-04-14 23:00:02 +00:00
|
|
|
cache:
|
2020-04-17 18:16:46 +00:00
|
|
|
key:
|
|
|
|
files:
|
2020-04-17 18:18:33 +00:00
|
|
|
- yarn.lock
|
2020-04-14 23:00:02 +00:00
|
|
|
paths:
|
|
|
|
- node_modules
|
|
|
|
|
2020-04-14 18:07:40 +00:00
|
|
|
stages:
|
|
|
|
- lint
|
|
|
|
- test
|
2020-04-14 23:00:02 +00:00
|
|
|
- build
|
2020-08-30 18:59:39 +00:00
|
|
|
- deploy
|
2020-04-14 18:07:40 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- yarn
|
|
|
|
|
|
|
|
lint-js:
|
|
|
|
stage: lint
|
|
|
|
script: yarn test:lint:js
|
|
|
|
|
|
|
|
lint-sass:
|
|
|
|
stage: lint
|
|
|
|
script: yarn test:lint:sass
|
|
|
|
|
2020-04-14 23:00:02 +00:00
|
|
|
jest:
|
|
|
|
stage: test
|
|
|
|
script: yarn test:jest
|
2020-04-14 18:16:08 +00:00
|
|
|
|
2020-04-14 18:20:07 +00:00
|
|
|
build-production:
|
|
|
|
stage: build
|
2020-04-26 17:49:20 +00:00
|
|
|
script: yarn build
|
2020-04-14 18:20:07 +00:00
|
|
|
variables:
|
|
|
|
NODE_ENV: production
|
2020-04-14 18:07:40 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-04-26 19:41:04 +00:00
|
|
|
- static
|
2020-04-14 18:07:40 +00:00
|
|
|
|
2020-08-30 18:59:39 +00:00
|
|
|
docs-deploy:
|
|
|
|
stage: deploy
|
|
|
|
image: alpine:latest
|
2020-08-29 21:51:17 +00:00
|
|
|
before_script:
|
|
|
|
- apk add curl
|
|
|
|
script:
|
2020-08-30 18:49:42 +00:00
|
|
|
- curl -X POST -F"token=$CI_JOB_TOKEN" -F'ref=master' https://gitlab.com/api/v4/projects/15685485/trigger/pipeline
|
2020-08-29 18:18:51 +00:00
|
|
|
only:
|
2020-08-30 20:09:11 +00:00
|
|
|
- develop
|
2020-08-29 18:18:51 +00:00
|
|
|
|
2020-06-12 06:02:18 +00:00
|
|
|
# Supposed to fail when translations are outdated, instead always passes
|
|
|
|
#
|
|
|
|
# i18n:
|
|
|
|
# stage: build
|
|
|
|
# script: yarn manage:translations
|
|
|
|
# variables:
|
|
|
|
# NODE_ENV: development
|
|
|
|
# before_script:
|
|
|
|
# - yarn
|
|
|
|
# - yarn build
|