grasp/.circleci/config.yml
2019-03-21 22:57:54 +00:00

55 lines
1.4 KiB
YAML

# TODO should I use yarn as in circleci node example??
version: 2
jobs:
build:
docker:
- image: circleci/node:latest
working_directory: ~/repo
steps:
- checkout
# 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
- run: sudo npm install -g npm
- restore_cache:
keys:
- dependency-cache-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- dependency-cache-
- 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
- run:
name: eslint
command: npm run eslint
# - store_artifacts:
# path: test-results.xml
# prefix: tests
# - store_artifacts:
# path: coverage
# prefix: coverage
# - store_test_results:
# path: test-results.xml