Reorganize gitlab-ci

stable/1.0.x
Alex Gleason 2020-04-14 18:00:02 -05:00
rodzic d4b63072bf
commit 5d0d47eeba
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 16 dodań i 9 usunięć

Wyświetl plik

@ -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