Skip to content

Commit

Permalink
infra: added monthly cache clean up for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach committed Nov 4, 2022
1 parent 3fd8268 commit f9700ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .ci/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ run-command)
fi
;;

monthly-cache-cleanup)
find ~/.m2 -mtime +30 -exec rm {} \;
;;

*)
echo "Unexpected argument: $1"
sleep 5s
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ script:
- ./.ci/travis.sh init-m2-repo
- ./.ci/travis.sh run-command "$CMD"
- ./.ci/validation.sh git-diff
- ./.ci/travis.sh monthly-cache-cleanup
- sleep 5s

after_success:

0 comments on commit f9700ed

Please sign in to comment.