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-22 11:04:16 +00:00
|
|
|
test:
|
|
|
|
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-22 11:04:16 +00:00
|
|
|
build-development:
|
|
|
|
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:
|
|
|
|
- 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"
|