CircleCI config

This commit is contained in:
James Barnsley
2019-04-11 11:43:36 +12:00
parent 6a26f82385
commit 181b04f69f

View File

@ -2,20 +2,32 @@ version: 2
jobs: jobs:
build: build:
docker: docker:
- image: circleci/python:2.7 - image: nikolaik/python-nodejs:python2.7-nodejs11
steps: steps:
- checkout - checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: - run:
name: install python dependencies name: install python dependencies
command: | command: |
npm install npm install
npm run prod npm run prod
pip install -e . pip install -e .
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
test: test:
docker: docker:
- image: circleci/python:2.7 - image: nikolaik/python-nodejs:python2.7-nodejs11
steps: steps:
- checkout - checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: - run:
name: install python dependencies name: install python dependencies
command: | command: |
@ -25,6 +37,10 @@ jobs:
- image: circleci/python:2.7 - image: circleci/python:2.7
steps: steps:
- checkout - checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: - run:
name: init .pypirc name: init .pypirc
command: | command: |