Skip to content

Commit

Permalink
CYT-010 Keep default python version in travis checks
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Dec 25, 2017
1 parent 9ebbdb7 commit d56c3a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 2 additions & 4 deletions Dockerfile.python2
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,14 @@ RUN set -x \
\
echo "# ---- Pythonstrap ----"; \
echo "- hosts: all"; \
echo " vars:"; \
echo " python_default: 2"; \
echo " roles:"; \
echo " - python-meta"; \
\
echo "# ---- Pre-defined Roles ----"; \
for r in ${ROLES}; do \
echo "- hosts: all"; \
echo " vars:"; \
echo " - $(echo $r | sed 's/-/_/g'): 'install'"; \
echo " $(echo $r | sed 's/-/_/g'): 'install'"; \
echo " roles:"; \
echo " - ${r}"; \
echo " tags:"; \
Expand All @@ -95,7 +93,7 @@ RUN set -x \
for r in ${ROLES}; do \
echo "- hosts: all"; \
echo " vars:"; \
echo " - $(echo $r | sed 's/-/_/g'): 'remove'"; \
echo " $(echo $r | sed 's/-/_/g'): 'remove'"; \
echo " roles:"; \
echo " - ${r}"; \
echo " tags:"; \
Expand Down
10 changes: 4 additions & 6 deletions Dockerfile.python3
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,14 @@ RUN set -x \
\
echo "# ---- Pythonstrap ----"; \
echo "- hosts: all"; \
echo " vars:"; \
echo " python_default: 2"; \
echo " roles:"; \
echo " - python-meta"; \
\
echo "# ---- Pre-defined Roles ----"; \
for r in ${ROLES}; do \
echo "- hosts: all"; \
echo " vars:"; \
echo " - $(echo $r | sed 's/-/_/g'): 'install'"; \
echo " $(echo $r | sed 's/-/_/g'): 'install'"; \
echo " roles:"; \
echo " - ${r}"; \
echo " tags:"; \
Expand All @@ -95,7 +93,7 @@ RUN set -x \
for r in ${ROLES}; do \
echo "- hosts: all"; \
echo " vars:"; \
echo " - $(echo $r | sed 's/-/_/g'): 'remove'"; \
echo " $(echo $r | sed 's/-/_/g'): 'remove'"; \
echo " roles:"; \
echo " - ${r}"; \
echo " tags:"; \
Expand Down Expand Up @@ -130,10 +128,10 @@ RUN set -x \
echo "if ! set | grep '^extra=' >/dev/null 2>&1; then"; \
echo " extra=\"\""; \
echo "fi"; \
echo "ansible-playbook -i inventory travis-ci-install.yml --limit \${MY_HOST} \${extra} --diff -v"; \
echo "ansible-playbook -i inventory travis-ci-install.yml --limit \${MY_HOST} \${extra} -e python_default=3 --diff -v"; \
echo "apt list --installed"; \
\
echo "ansible-playbook -i inventory travis-ci-remove.yml --limit \${MY_HOST} \${extra} --diff -v"; \
echo "ansible-playbook -i inventory travis-ci-remove.yml --limit \${MY_HOST} \${extra} -e python_default=3 --diff -v"; \
#echo "apt list --installed"; \
) > run-tests.sh \
&& chmod +x run-tests.sh
Expand Down

0 comments on commit d56c3a5

Please sign in to comment.