grasp/.circleci/config.yml

55 lines
1.4 KiB
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
2019-03-21 15:56:57 -07:00
# ugh. circleci only got python3.6 on this node package??? and it's unclear how to combine multiple circleci docker configurations...
# - run: |
# sudo apt install python3-pip
# sudo python3 -m pip install pylint mypy
# - run:
# name: pylint
# command: python3 -m pylint -E server/grasp_server.py
# - run:
# name: mypy
# command: python3 -m mypy server/grasp_server.py
2019-01-06 05:47:50 -08:00
- 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
2019-01-06 12:49:39 -08:00
- run:
name: eslint
command: npm run eslint
2019-01-06 05:47:50 -08:00
# - store_artifacts:
# path: test-results.xml
# prefix: tests
# - store_artifacts:
# path: coverage
# prefix: coverage
# - store_test_results:
# path: test-results.xml