Build app using gitlab 2

pull/211/head
Vladimir Volek 6 years ago
parent 5e85c9fef0
commit 63bfe4c6b9

@ -1,30 +1,62 @@
image: node:8 image: node:8
cache:
paths:
- node_modules
before_script: before_script:
- yarn install - yarn install
build site: stages:
stage: build - test
script: - build
- yarn install --progress=false - deploy
- yarn run build
artifacts:
expire_in: 1 week
paths:
- build
cache: lint:
paths: stage: test
- node_modules/ script:
- yarn run lint
flow: flow:
stage: test
script: script:
- yarn run flow - yarn run flow
test:lint: test:
stage: test
script: script:
- yarn run lint - yarn run test
test:unit: build-development:
stage: build
script: script:
- yarn run test - yarn run build:dev
artifacts:
expire_in: 1 month
paths:
- build/dev
build-beta:
stage: build
script:
- yarn run build:beta
artifacts:
expire_in: 1 month
paths:
- build/beta
build-production:
stage: build
script:
- yarn run build:prod
artifacts:
expire_in: 1 month
paths:
- build/production
deploy_dev:
stage: echo "Deploy dev"
deploy_staging:
stage: deploy
script: echo "Deploy staging"
Loading…
Cancel
Save