1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-06 14:20:55 +00:00

Build app using gitlab 2

This commit is contained in:
Vladimir Volek 2018-10-22 13:04:16 +02:00
parent 5e85c9fef0
commit 63bfe4c6b9

View File

@ -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:
- yarn install --progress=false
- yarn run build
artifacts:
expire_in: 1 week
paths:
- build - build
- deploy
cache: lint:
paths: stage: test
- node_modules/
flow:
script:
- yarn run flow
test:lint:
script: script:
- yarn run lint - yarn run lint
test:unit: flow:
stage: test
script:
- yarn run flow
test:
stage: test
script: script:
- yarn run test - yarn run test
build-development:
stage: build
script:
- 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"