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