Skip to content

Commit

Permalink
enable mitogen on CI tests via env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckySB committed Apr 23, 2020
1 parent 9a47bd5 commit 81696b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mitogen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
dest: "{{ playbook_dir }}/dist/mitogen_{{ mitogen_version }}.tar.gz"
validate_certs: true

- name: extract zip
- name: extract archive
unarchive:
src: "{{ playbook_dir }}/dist/mitogen_{{ mitogen_version }}.tar.gz"
dest: "{{ playbook_dir }}/dist/"
Expand Down
6 changes: 5 additions & 1 deletion tests/scripts/testcases_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ test "${UPGRADE_TEST}" != "false" && git fetch --all && git checkout "$KUBESPRAY
test "${UPGRADE_TEST}" != "false" && git checkout "${CI_BUILD_REF}" tests/files/${CI_JOB_NAME}.yml tests/testcases/*.yml

# Install mitogen ansible plugin
test "${MITOGEN_ENABLE}" = "true" && ansible-playbook ${ANSIBLE_LOG_LEVEL} mitogen.yml
if [ "${MITOGEN_ENABLE}" = "true" ]; then
ansible-playbook ${ANSIBLE_LOG_LEVEL} mitogen.yml
export ANSIBLE_STRATEGY=mitogen_linear
export ANSIBLE_STRATEGY_PLUGINS=plugins/mitogen/ansible_mitogen/plugins/strategy
fi

# Create cluster
ansible-playbook ${ANSIBLE_LOG_LEVEL} -e @${CI_TEST_VARS} -e local_release_dir=${PWD}/downloads --limit "all:!fake_hosts" cluster.yml
Expand Down

0 comments on commit 81696b5

Please sign in to comment.