Skip to content

Commit

Permalink
CYT-010 Check if travis can handle uninstallation in time
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Dec 25, 2017
1 parent d33cc84 commit 9ebbdb7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions Dockerfile.python2
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,24 @@ RUN set -x \
\
# ---- Remove playbook ----
&& ( \
echo "# ---- (DELETE) Pre-defined Roles ----"; \
for r in ${ROLES}; do \
echo "- hosts: all"; \
echo " vars:"; \
echo " - $(echo $r | sed 's/-/_/g'): 'remove'"; \
echo " roles:"; \
echo " - ${r}"; \
echo " tags:"; \
echo " - ${r}"; \
done; \
\
echo "# ---- (DELETE) Custom packages"; \
echo "- hosts: all"; \
echo " vars:"; \
echo " apt_state: absent"; \
echo " roles:"; \
echo " - apt-meta"; \
\
echo "# ---- (DELETE) Pre-defined Roles ----"; \
echo "- hosts: all"; \
echo " vars:"; \
for r in ${ROLES}; do \
echo " - $(echo $r | sed 's/-/_/g'): 'remove'"; \
done; \
echo " roles:"; \
for r in ${ROLES}; do \
echo " - ${r}"; \
done; \
\
echo "# ---- (DELETE) Repositories"; \
echo "- hosts: all"; \
echo " vars:"; \
Expand All @@ -133,7 +133,7 @@ RUN set -x \
echo "ansible-playbook -i inventory travis-ci-install.yml --limit \${MY_HOST} \${extra} --diff -v"; \
echo "apt list --installed"; \
\
#echo "ansible-playbook -i inventory travis-ci-remove.yml --limit \${MY_HOST} --diff -v"; \
echo "ansible-playbook -i inventory travis-ci-remove.yml --limit \${MY_HOST} \${extra} --diff -v"; \
#echo "apt list --installed"; \
) > run-tests.sh \
&& chmod +x run-tests.sh
Expand Down
24 changes: 12 additions & 12 deletions Dockerfile.python3
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,24 @@ RUN set -x \
\
# ---- Remove playbook ----
&& ( \
echo "# ---- (DELETE) Pre-defined Roles ----"; \
for r in ${ROLES}; do \
echo "- hosts: all"; \
echo " vars:"; \
echo " - $(echo $r | sed 's/-/_/g'): 'remove'"; \
echo " roles:"; \
echo " - ${r}"; \
echo " tags:"; \
echo " - ${r}"; \
done; \
\
echo "# ---- (DELETE) Custom packages"; \
echo "- hosts: all"; \
echo " vars:"; \
echo " apt_state: absent"; \
echo " roles:"; \
echo " - apt-meta"; \
\
echo "# ---- (DELETE) Pre-defined Roles ----"; \
echo "- hosts: all"; \
echo " vars:"; \
for r in ${ROLES}; do \
echo " - $(echo $r | sed 's/-/_/g'): 'remove'"; \
done; \
echo " roles:"; \
for r in ${ROLES}; do \
echo " - ${r}"; \
done; \
\
echo "# ---- (DELETE) Repositories"; \
echo "- hosts: all"; \
echo " vars:"; \
Expand All @@ -133,7 +133,7 @@ RUN set -x \
echo "ansible-playbook -i inventory travis-ci-install.yml --limit \${MY_HOST} \${extra} --diff -v"; \
echo "apt list --installed"; \
\
#echo "ansible-playbook -i inventory travis-ci-remove.yml --limit \${MY_HOST} --diff -v"; \
echo "ansible-playbook -i inventory travis-ci-remove.yml --limit \${MY_HOST} \${extra} --diff -v"; \
#echo "apt list --installed"; \
) > run-tests.sh \
&& chmod +x run-tests.sh
Expand Down

0 comments on commit 9ebbdb7

Please sign in to comment.