Build app using gitlab 2

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

@ -1,30 +1,62 @@
image: node:8
cache:
paths:
- node_modules
before_script:
- yarn install
build site:
stage: build
script:
- yarn install --progress=false
- yarn run build
artifacts:
expire_in: 1 week
paths:
- build
stages:
- test
- build
- deploy
cache:
paths:
- node_modules/
lint:
stage: test
script:
- yarn run lint
flow:
stage: test
script:
- yarn run flow
test:lint:
test:
stage: test
script:
- yarn run lint
- yarn run test
test:unit:
build-development:
stage: build
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