grasp/.circleci/config.yml

39 lines
953 B
YAML
Raw Normal View History

2019-01-06 05:52:53 -08:00
# TODO should I use yarn as in circleci node example??
2019-01-06 05:47:50 -08:00
version: 2
jobs:
build:
docker:
- image: circleci/node:latest
2019-01-06 05:52:53 -08:00
working_directory: ~/repo
2019-01-06 05:47:50 -08:00
steps:
- checkout
- run: sudo npm install -g npm
2019-01-06 05:52:53 -08:00
2019-01-06 05:47:50 -08:00
- restore_cache:
2019-01-06 05:52:53 -08:00
keys:
- dependency-cache-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- dependency-cache-
2019-01-06 05:47:50 -08:00
- run: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: build
command: npm run build
- run:
name: flow
command: npm run flow
# - store_artifacts:
# path: test-results.xml
# prefix: tests
# - store_artifacts:
# path: coverage
# prefix: coverage
# - store_test_results:
# path: test-results.xml