From c14c9a0f1ddf3eafbfd50f6fa23e98b05099689b Mon Sep 17 00:00:00 2001 From: Kushal Das Date: Thu, 9 Aug 2018 00:33:34 +0530 Subject: [PATCH] Adds a circleci config --- .circleci/config.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..c6902b78d --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,32 @@ +version: 2 +jobs: + build: + working_directory: ~/sdclientapi + docker: + - image: circleci/python:3.5.3 + environment: + PIPENV_VENV_IN_PROJECT: true + steps: + - checkout + - run: sudo chown -R circleci:circleci /usr/local/bin + - run: sudo chown -R circleci:circleci /usr/local/lib/python3.5/site-packages + - restore_cache: + key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} + - run: + command: | + sudo pip install pipenv + pipenv install -d + - save_cache: + key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} + paths: + - ".venv" + - "/usr/local/bin" + - "/usr/local/lib/python3.5/site-packages" + - run: + command: | + pipenv run python -m unittest discover -v tests/ + - store_test_results: + path: test-results + - store_artifacts: + path: test-results +destination: tr1 \ No newline at end of file