From 181b04f69fc968102588dcbc73067909e6b7753a Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Thu, 11 Apr 2019 11:43:36 +1200 Subject: [PATCH] CircleCI config --- .circleci/config.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b8325488..7e2dc1e9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,20 +2,32 @@ version: 2 jobs: build: docker: - - image: circleci/python:2.7 + - image: nikolaik/python-nodejs:python2.7-nodejs11 steps: - checkout + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + - v1-dependencies- - run: name: install python dependencies command: | npm install npm run prod pip install -e . + - save_cache: + paths: + - node_modules + key: v1-dependencies-{{ checksum "package.json" }} test: docker: - - image: circleci/python:2.7 + - image: nikolaik/python-nodejs:python2.7-nodejs11 steps: - checkout + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + - v1-dependencies- - run: name: install python dependencies command: | @@ -25,6 +37,10 @@ jobs: - image: circleci/python:2.7 steps: - checkout + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + - v1-dependencies- - run: name: init .pypirc command: |