Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
156 changes: 115 additions & 41 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,40 @@ executors:
image: ubuntu-1604:201903-01

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:
Expand Down Expand Up @@ -218,8 +252,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:
Expand Down Expand Up @@ -275,13 +351,20 @@ 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:
Expand All @@ -290,32 +373,30 @@ workflows:
filters:
branches:
only: /([0-9\.]*\-build|master)/
- integration_tests_505:
requires:
- wagon
- rhel_wagon
filters:
branches:
only: /([0-9\.]*\-build|master)/
- integration_tests_510:
requires:
- wagon
- rhel_wagon
- integration_tests_505
filters:
branches:
only: /([0-9\.]*\-build|master)/
- release:
filters:
branches:
only: /master/
requires:
- unittests_py27
- unittests_py36
- wagon
- rhel_wagon
- integration_tests_505
- integration_tests_510
# - 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:
Expand All @@ -336,17 +417,10 @@ workflows:
filters:
branches:
only: /([0-9\.]*\-build|master)/
- integration_tests_505:
requires:
- wagon
- rhel_wagon
filters:
branches:
only: /([0-9\.]*\-build|master)/
- integration_tests_510:
requires:
- wagon
- rhel_wagon
filters:
branches:
only: /([0-9\.]*\-build|master)/
# - integration_tests:
# requires:
# - wagon
# - rhel_wagon
# filters:
# branches:
# only: /([0-9\.]*\-build|master)/
11 changes: 11 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down