diff options
author | F. Eugene Aumson <feuGeneA@users.noreply.github.com> | 2019-01-09 03:28:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-09 03:28:32 +0800 |
commit | 4689f20b86333d74fa0ccd45b23c560a0a0361b5 (patch) | |
tree | 9b1810a912a7c866d6be3799b24feea9c9f49d1f /.circleci/config.yml | |
parent | de927d7207571e99a009320d9a47ae9815c2e198 (diff) | |
parent | e62e61bf7145c0a8011e098aa22168416d01a781 (diff) | |
download | dexon-sol-tools-4689f20b86333d74fa0ccd45b23c560a0a0361b5.tar dexon-sol-tools-4689f20b86333d74fa0ccd45b23c560a0a0361b5.tar.gz dexon-sol-tools-4689f20b86333d74fa0ccd45b23c560a0a0361b5.tar.bz2 dexon-sol-tools-4689f20b86333d74fa0ccd45b23c560a0a0361b5.tar.lz dexon-sol-tools-4689f20b86333d74fa0ccd45b23c560a0a0361b5.tar.xz dexon-sol-tools-4689f20b86333d74fa0ccd45b23c560a0a0361b5.tar.zst dexon-sol-tools-4689f20b86333d74fa0ccd45b23c560a0a0361b5.zip |
Move json_schemas to its own package (#1435)
* Move zero_ex.json_schemas to its own package
* Support ALL the schemas
* Stop installing packages as editable
* HACK: cp files because CircleCI isn't
* Add example usage to sra_client README
* Tweak special case: only strip Schema as suffix
* Correct doc titles
* Clarify what kind of support ticket was raised.
* Correct inconsistencies in JSON schema names
In both ref ID's and file names.
* Add entry point for validation of JSON strings
Diffstat (limited to '.circleci/config.yml')
-rw-r--r-- | .circleci/config.yml | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 68d8041a2..bb7a02cd5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -202,14 +202,25 @@ jobs: key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }} - run: command: | + cd python-packages/json_schemas + python -m ensurepip + python -m pip install .[dev] + # HACK! installing the package should do the following + # copy for us, but it's not working in CircleCI for some + # reason. Zendesk support ticket raised (#43979) with + # CircleCI. + mkdir /usr/local/lib/python3.7/site-packages/zero_ex/json_schemas/schemas + cp -R src/zero_ex/json_schemas/schemas/* /usr/local/lib/python3.7/site-packages/zero_ex/json_schemas/schemas + - run: + command: | cd python-packages/order_utils python -m ensurepip - python -m pip install -e .[dev] + python -m pip install .[dev] - run: command: | cd python-packages/sra_client python -m ensurepip - python -m pip install -e . + python -m pip install .[dev] - save_cache: key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }} paths: @@ -221,6 +232,10 @@ jobs: - '.tox' - run: command: | + cd python-packages/json_schemas + coverage run setup.py test + - run: + command: | cd python-packages/order_utils coverage run setup.py test - run: @@ -228,6 +243,10 @@ jobs: cd python-packages/sra_client coverage run setup.py test - save_cache: + key: coverage-python-json-schemas-{{ .Environment.CIRCLE_SHA1 }} + paths: + - ~/repo/python-packages/json_schemas/.coverage + - save_cache: key: coverage-python-order-utils-{{ .Environment.CIRCLE_SHA1 }} paths: - ~/repo/python-packages/order_utils/.coverage @@ -249,7 +268,7 @@ jobs: command: | cd python-packages/order_utils python -m ensurepip - python -m pip install -e .[dev] + python -m pip install . - save_cache: key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }} paths: @@ -275,9 +294,14 @@ jobs: key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }} - run: command: | + cd python-packages/json_schemas + python -m ensurepip + python -m pip install .[dev] + - run: + command: | cd python-packages/order_utils python -m ensurepip - python -m pip install -e .[dev] + python -m pip install .[dev] - save_cache: key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }} paths: @@ -285,6 +309,10 @@ jobs: - '/usr/local/lib/python3.7/site-packages' - run: command: | + cd python-packages/json_schemas + python setup.py lint + - run: + command: | cd python-packages/order_utils python setup.py lint static-tests: @@ -357,6 +385,9 @@ jobs: - coverage-contracts-{{ .Environment.CIRCLE_SHA1 }} - restore_cache: keys: + - coverage-python-json-schemas-{{ .Environment.CIRCLE_SHA1 }} + - restore_cache: + keys: - coverage-python-order-utils-{{ .Environment.CIRCLE_SHA1 }} - run: yarn report_coverage workflows: |