From 6a26f82385ad12c3c8a0225d10fd68dc5c8a26c8 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Thu, 11 Apr 2019 11:34:38 +1200 Subject: [PATCH] CircleCI config --- .circleci/config.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0e97748f..b8325488 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,8 +8,10 @@ jobs: - run: name: install python dependencies command: | + npm install + npm run prod pip install -e . - deploy: + test: docker: - image: circleci/python:2.7 steps: @@ -17,7 +19,12 @@ jobs: - run: name: install python dependencies command: | - pip install -e . + npm run test + deploy: + docker: + - image: circleci/python:2.7 + steps: + - checkout - run: name: init .pypirc command: | @@ -30,15 +37,21 @@ jobs: python setup.py sdist workflows: version: 2 - build_and_deploy: + build_test_and_deploy: jobs: - build: filters: tags: only: /.*/ - - deploy: + - test: requires: - build + filters: + tags: + only: /.*/ + - deploy: + requires: + - test filters: branches: only: master \ No newline at end of file