soapbox/.gitlab-ci.yml

59 wiersze
735 B
YAML
Czysty Zwykły widok Historia

2020-04-14 18:07:40 +00:00
image: node:12
variables:
NODE_ENV: test
2020-04-14 23:00:02 +00:00
cache:
key:
files:
- 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-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:07:40 +00:00
build-development:
stage: build
script: yarn build
2020-04-14 18:20:07 +00:00
variables:
NODE_ENV: development
artifacts:
paths:
- static
2020-04-14 18:20:07 +00:00
build-production:
stage: build
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:
- static
2020-04-14 18:07:40 +00:00
2020-04-14 23:00:02 +00:00
i18n:
stage: build
script: yarn manage:translations
variables:
2020-04-26 18:02:42 +00:00
NODE_ENV: development
2020-04-14 23:00:02 +00:00
before_script:
- yarn
- yarn build