Skip to content

Commit

Permalink
squash! Update to Bones 0.5.1
Browse files Browse the repository at this point in the history
This applies similar logic to removing TravisCI environments in
case tests get interrupted after making the environment but
before cleaning it up. All but the last three most recent conda
environments starting with 'travis-ci-' are removed.
  • Loading branch information
tbekolay committed Oct 14, 2019
1 parent 64680dd commit 33706e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .templates/hardware.sh.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@

{% block remote_cleanup %}
{{ super() }}
conda-env remove -y -n travis-ci-$TRAVIS_JOB_NUMBER
# Remove all but the last three 'travis-ci-*' conda environments
conda-env list |
grep 'travis-ci-' |
cut -d' ' -f 1 |
head -n -3 |
xargs -I {} conda-env remove -y -n {}
{% endblock %}

0 comments on commit 33706e2

Please sign in to comment.