1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-02-20 03:52:01 +00:00
trezor-wallet/.gitlab-ci.yml

68 lines
905 B
YAML
Raw Normal View History

2018-10-01 13:12:54 +00:00
image: node:8
2018-10-22 11:04:16 +00:00
cache:
paths:
- node_modules
2018-10-01 13:12:54 +00:00
before_script:
- yarn install
2018-10-22 11:04:16 +00:00
stages:
- test
- build
- deploy
2018-10-22 10:25:12 +00:00
2018-10-22 11:04:16 +00:00
lint:
stage: test
script:
- yarn run lint
2018-10-01 13:12:54 +00:00
flow:
2018-10-22 11:04:16 +00:00
stage: test
2018-10-01 13:12:54 +00:00
script:
- yarn run flow
2018-10-23 14:31:10 +00:00
unit:
2018-10-22 11:04:16 +00:00
stage: test
2018-10-01 13:12:54 +00:00
script:
2018-10-22 11:04:16 +00:00
- yarn run test
2018-10-01 13:12:54 +00:00
2018-10-23 14:29:33 +00:00
build development:
2018-10-22 11:04:16 +00:00
stage: build
2018-10-01 13:12:54 +00:00
script:
2018-10-22 11:04:16 +00:00
- yarn run build:dev
artifacts:
expire_in: 1 month
paths:
2018-10-23 14:48:54 +00:00
- build/dev
2018-10-22 11:04:16 +00:00
2018-10-23 14:29:33 +00:00
build beta:
2018-10-22 11:04:16 +00:00
stage: build
script:
- yarn run build:beta
artifacts:
expire_in: 1 month
paths:
2018-10-23 14:48:54 +00:00
- build/beta
2018-10-22 11:04:16 +00:00
2018-10-23 14:29:33 +00:00
build production:
2018-10-22 11:04:16 +00:00
stage: build
script:
- yarn run build:prod
artifacts:
expire_in: 1 month
paths:
2018-10-23 14:48:54 +00:00
- build/prod
2018-10-23 14:29:33 +00:00
# deploy
deploy review:
stage: deploy
script:
- echo "Deploy a review app"
environment:
name: review/$CI_COMMIT_REF_NAME
url: https://$CI_ENVIRONMENT_SLUG.example.com
only:
- branches
except:
- master