You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-wallet/.gitlab-ci.yml

68 lines
909 B

image: node:8
cache:
paths:
- node_modules
before_script:
- yarn install
stages:
- test
- build
- deploy
lint:
stage: test
script:
- yarn run lint
flow:
stage: test
script:
- yarn run flow
unit:
stage: test
script:
- 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:stable
artifacts:
expire_in: 1 month
paths:
- build/stable
# 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