From d5f7a6319b365a11937b70d8ca49e4ccced2e269 Mon Sep 17 00:00:00 2001 From: earthmant Date: Wed, 30 Sep 2020 17:12:32 +0300 Subject: [PATCH 1/2] update circle --- .circleci/config.yml | 138 +++++++++++++++++++++++++++++++++++-------- tox.ini | 11 ++++ 2 files changed, 126 insertions(+), 23 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 367df00..fa6b440 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,6 +29,40 @@ executors: commands: + + + validate_documentation: + steps: + - run: + name: "Pull Submodules" + command: | + git submodule init + git submodule update --remote --recursive + - run: + name: Download pip + command: curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" + - run: + name: Install pip + command: sudo python get-pip.py + - run: + name: Install virtualenv + command: pip install --user virtualenv + - run: + name: Init virtualenv + command: virtualenv env + - run: + name: install tox + command: pip install --user pygithub pyyaml==3.10 + - run: + name: upgrade setuptools + command: pip install --upgrade setuptools + - run: + name: install local project + command: pip install https://github.com/cloudify-incubator/cloudify-ecosystem-test/archive/latest.zip + - attach_workspace: + at: workspace + - run: python .circleci/validate_docs.py + run_unittest: steps: - run: @@ -199,8 +233,50 @@ commands: at: workspace - run: python .circleci/package_release.py + + + merge_docs: + steps: + - attach_workspace: + at: workspace + - run: + name: "Pull Submodules" + command: | + git submodule init + git submodule update --remote --recursive + - run: + name: Download pip + command: curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" + - run: + name: Install pip + command: sudo python get-pip.py + - run: + name: Install virtualenv + command: pip install --user virtualenv + - run: + name: Init virtualenv + command: virtualenv env + - run: + name: install tox + command: pip install --user pygithub pyyaml==3.10 + - run: + name: upgrade setuptools + command: pip install --upgrade setuptools + - run: + name: install local project + command: pip install https://github.com/cloudify-incubator/cloudify-ecosystem-test/archive/latest.zip + - attach_workspace: + at: workspace + - run: python .circleci/merge_docs.py + jobs: + validate_documentation: + executor: py27 + steps: + - checkout + - validate_documentation + unittests_py27: executor: py27 steps: @@ -248,13 +324,21 @@ jobs: - checkout - release_plugin + merge_docs: + executor: py27 + steps: + - checkout + - merge_docs + workflows: version: 2 tests: - jobs: &all_jobs + jobs: - py3_compat - unittests_py27 - unittests_py36 +# - validate_documentation + - wagon: filters: branches: @@ -263,21 +347,29 @@ workflows: filters: branches: only: /([0-9\.]*\-build|master)/ - - integration_tests: - requires: - - wagon - - rhel_wagon - filters: - branches: - only: /([0-9\.]*\-build|master)/ - - release: - filters: - branches: - only: /master/ - requires: - - wagon - - rhel_wagon - - integration_tests +# - integration_tests: +# requires: +# - wagon +# - rhel_wagon +# filters: +# branches: +# only: /([0-9\.]*\-build|master)/ +# - release: +# filters: +# branches: +# only: /master/ +# requires: +# - wagon +# - rhel_wagon +# - integration_tests +# - merge_docs: +# filters: +# branches: +# only: /master/ +# requires: +# - release +# - validate_documentation + nightly: triggers: - schedule: @@ -298,10 +390,10 @@ workflows: filters: branches: only: /([0-9\.]*\-build|master)/ - - integration_tests: - requires: - - wagon - - rhel_wagon - filters: - branches: - only: /([0-9\.]*\-build|master)/ +# - integration_tests: +# requires: +# - wagon +# - rhel_wagon +# filters: +# branches: +# only: /([0-9\.]*\-build|master)/ diff --git a/tox.ini b/tox.ini index 4da77ab..0a47340 100644 --- a/tox.ini +++ b/tox.ini @@ -2,6 +2,17 @@ [tox] envlist=flake8,nosetests +[testenv] +setenv = + VIRTUAL_ENV={envdir} + +# NOTE: relative paths were used due to '-w' flag for nosetests util + +usedevelop = True +install_command = pip install -U {opts} {packages} +deps = -r{toxinidir}/test-requirements.txt +whitelist_externals = bash + [testenv:nosetest] deps = -rdev-requirements.txt From 4428ccf3433f55bedc5ff89f3998f0317dc4597b Mon Sep 17 00:00:00 2001 From: earthmant Date: Wed, 30 Sep 2020 17:14:53 +0300 Subject: [PATCH 2/2] fix issue --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fa6b440..9534f54 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -338,7 +338,6 @@ workflows: - unittests_py27 - unittests_py36 # - validate_documentation - - wagon: filters: branches: