2020-04-14 11:07:40 -07:00
|
|
|
image: node:12
|
|
|
|
|
|
|
|
variables:
|
|
|
|
NODE_ENV: test
|
|
|
|
|
2020-04-14 16:00:02 -07:00
|
|
|
cache:
|
2020-04-17 11:16:46 -07:00
|
|
|
key:
|
|
|
|
files:
|
2020-04-17 11:18:33 -07:00
|
|
|
- yarn.lock
|
2020-04-14 16:00:02 -07:00
|
|
|
paths:
|
|
|
|
- node_modules
|
|
|
|
|
2020-04-14 11:07:40 -07:00
|
|
|
stages:
|
|
|
|
- lint
|
|
|
|
- test
|
2020-04-14 16:00:02 -07:00
|
|
|
- build
|
2020-04-14 11:07:40 -07: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 16:00:02 -07:00
|
|
|
jest:
|
|
|
|
stage: test
|
|
|
|
script: yarn test:jest
|
2020-04-14 11:16:08 -07:00
|
|
|
|
2020-04-14 11:07:40 -07:00
|
|
|
build-development:
|
|
|
|
stage: build
|
|
|
|
script: yarn build:development
|
2020-04-14 11:20:07 -07:00
|
|
|
variables:
|
|
|
|
NODE_ENV: development
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-04-14 16:00:02 -07:00
|
|
|
- public
|
2020-04-14 11:20:07 -07:00
|
|
|
|
|
|
|
build-production:
|
|
|
|
stage: build
|
|
|
|
script: yarn build:production
|
|
|
|
variables:
|
|
|
|
NODE_ENV: production
|
2020-04-14 11:07:40 -07:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-04-14 16:00:02 -07:00
|
|
|
- public
|
2020-04-14 11:07:40 -07:00
|
|
|
|
2020-04-14 16:00:02 -07:00
|
|
|
i18n:
|
|
|
|
stage: build
|
|
|
|
script: yarn manage:translations
|
|
|
|
before_script:
|
|
|
|
- yarn
|
|
|
|
- yarn build:development
|