dynamicbible/.gitlab-ci.yml

38 lines
657 B
YAML

stages:
- test
- build
- staging
build:
stage: build
image: node:14.5.0
variables:
NODE_OPTIONS: "--max_old_space_size=2048"
script:
- cd ./src
- make build
artifacts:
paths:
- ./src/dist/dynamicbible
test:
stage: test
image: walljm/node-chrome-headless:14.8.0
variables:
NODE_OPTIONS: "--max_old_space_size=2048"
script:
- cd ./src
- make test
deploy-staging:
stage: staging
variables:
- gcloud_service_account_email
- gcloud_service_account_key
script:
- make deploy-staging
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success
allow_failure: false