diff options
author | F. Eugene Aumson <feuGeneA@users.noreply.github.com> | 2018-10-13 03:50:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-13 03:50:48 +0800 |
commit | 2afa38c927ab10f1d8eecbb7e81a7c70f4bda767 (patch) | |
tree | 3067bb0795601f732275cf085f365b0276677508 /.circleci | |
parent | 11033c78f559de207f89e7588dc3ccf458cbbe30 (diff) | |
parent | 92fd0a9d24378d01d87dfa6fd0ec5a42edfe8308 (diff) | |
download | dexon-sol-tools-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.tar dexon-sol-tools-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.tar.gz dexon-sol-tools-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.tar.bz2 dexon-sol-tools-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.tar.lz dexon-sol-tools-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.tar.xz dexon-sol-tools-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.tar.zst dexon-sol-tools-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.zip |
feat(python/order_utils): project stub
An empty project, with respect to functionality, but one configured with
a test framework, linters, CI integration, etc.
https://app.asana.com/0/836857747873847/839549782781239/f
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 3c87e1ff2..876b861d3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -162,6 +162,90 @@ jobs: key: coverage-web3-wrapper-{{ .Environment.CIRCLE_SHA1 }} paths: - ~/repo/packages/web3-wrapper/coverage/lcov.info + test-python: + working_directory: ~/repo + docker: + - image: circleci/python + steps: + - checkout + - run: sudo chown -R circleci:circleci /usr/local/bin + - run: sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages + - restore_cache: + key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }} + - run: + command: | + cd python-packages/order_utils + python -m ensurepip + python -m pip install -e .[dev] + - save_cache: + key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }} + paths: + - "/usr/local/bin" + - "/usr/local/lib/python3.7/site-packages" + - ".eggs" + - ".mypy_cache" + - ".pytest_cache" + - ".tox" + - run: + command: | + cd python-packages/order_utils + coverage run setup.py test + - save_cache: + key: coverage-python-order-utils-{{ .Environment.CIRCLE_SHA1 }} + paths: + - ~/repo/python-packages/order_utils/.coverage + test-rest-python: + working_directory: ~/repo + docker: + - image: circleci/python + steps: + - checkout + - run: sudo chown -R circleci:circleci /usr/local/bin + - run: sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages + - restore_cache: + key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }} + - run: + command: | + cd python-packages/order_utils + python -m ensurepip + python -m pip install -e .[dev] + - save_cache: + key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }} + paths: + - "/usr/local/bin" + - "/usr/local/lib/python3.7/site-packages" + - ".eggs" + - ".mypy_cache" + - ".pytest_cache" + - ".tox" + - run: + command: | + cd python-packages/order_utils + tox + static-tests-python: + working_directory: ~/repo + docker: + - image: circleci/python + steps: + - checkout + - run: sudo chown -R circleci:circleci /usr/local/bin + - run: sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages + - restore_cache: + key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }} + - run: + command: | + cd python-packages/order_utils + python -m ensurepip + python -m pip install -e .[dev] + - save_cache: + key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }} + paths: + - "/usr/local/bin" + - "/usr/local/lib/python3.7/site-packages" + - run: + command: | + cd python-packages/order_utils + python setup.py lint static-tests: working_directory: ~/repo docker: @@ -233,6 +317,9 @@ jobs: - restore_cache: keys: - coverage-contracts-{{ .Environment.CIRCLE_SHA1 }} + - restore_cache: + keys: + - coverage-python-order-utils-{{ .Environment.CIRCLE_SHA1 }} - run: yarn report_coverage workflows: version: 2 @@ -263,3 +350,8 @@ workflows: - submit-coverage: requires: - test-rest + - test-python + - test-python + - static-tests-python + # skip python tox run for now, as we don't yet have multiple test environments to support. + #- test-rest-python |