regexper-static/.circleci/config.yml

55 lines
1.1 KiB
YAML
Raw Normal View History

2018-02-11 01:25:00 +00:00
version: 2
jobs:
2018-02-11 01:57:13 +00:00
build_deploy:
2018-02-11 01:25:00 +00:00
docker:
- image: circleci/node:7.10
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: yarn install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: yarn test
2018-02-11 01:57:13 +00:00
- run: |
echo $GA_PROPERTY
echo $SENTRY_KEY
yarn build
# TODO: Deploy to preview.regexper.com
workflows:
version: 2
2018-02-11 01:57:13 +00:00
preview:
jobs:
- build_preview:
2018-02-11 01:57:13 +00:00
context: preview-context
filters:
tags:
ignore: /.*/
2018-02-11 01:57:13 +00:00
branches:
only: /.*/
prod:
jobs:
- build_prod:
2018-02-11 01:57:13 +00:00
context: prod-context
filters:
tags:
only: /.*/
2018-02-11 01:57:13 +00:00
branches:
ignore: /.*/