regexper-static/.circleci/config.yml

52 lines
1.0 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:
2018-02-11 02:01:58 +00:00
- image: circleci/node:latest
2018-02-11 01:25:00 +00:00
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:58:59 +00:00
- run: yarn build
# TODO: Deploy to preview.regexper.com
workflows:
version: 2
2018-02-11 01:57:13 +00:00
preview:
jobs:
2018-02-11 01:57:52 +00:00
- build_deploy:
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:
2018-02-11 01:57:52 +00:00
- build_deploy:
2018-02-11 01:57:13 +00:00
context: prod-context
filters:
tags:
only: /.*/
2018-02-11 01:57:13 +00:00
branches:
ignore: /.*/