sforkowany z mirror/soapbox
Reorganize gitlab-ci
rodzic
d4b63072bf
commit
5d0d47eeba
|
@ -3,10 +3,14 @@ image: node:12
|
||||||
variables:
|
variables:
|
||||||
NODE_ENV: test
|
NODE_ENV: test
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- lint
|
- lint
|
||||||
- build
|
|
||||||
- test
|
- test
|
||||||
|
- build
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- yarn
|
- yarn
|
||||||
|
@ -19,9 +23,9 @@ lint-sass:
|
||||||
stage: lint
|
stage: lint
|
||||||
script: yarn test:lint:sass
|
script: yarn test:lint:sass
|
||||||
|
|
||||||
i18n:
|
jest:
|
||||||
stage: lint
|
stage: test
|
||||||
script: yarn manage:translations
|
script: yarn test:jest
|
||||||
|
|
||||||
build-development:
|
build-development:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -30,7 +34,7 @@ build-development:
|
||||||
NODE_ENV: development
|
NODE_ENV: development
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public/packs
|
- public
|
||||||
|
|
||||||
build-production:
|
build-production:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -39,8 +43,11 @@ build-production:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public/packs
|
- public
|
||||||
|
|
||||||
jest:
|
i18n:
|
||||||
stage: test
|
stage: build
|
||||||
script: yarn test:jest
|
script: yarn manage:translations
|
||||||
|
before_script:
|
||||||
|
- yarn
|
||||||
|
- yarn build:development
|
||||||
|
|
Ładowanie…
Reference in New Issue