diff --git a/.ci/travis.sh b/.ci/travis.sh index de473c3e35..f7acc32347 100755 --- a/.ci/travis.sh +++ b/.ci/travis.sh @@ -37,6 +37,10 @@ run-command) fi ;; +monthly-cache-cleanup) + find ~/.m2 -mtime +30 -exec rm {} \; + ;; + *) echo "Unexpected argument: $1" sleep 5s diff --git a/.travis.yml b/.travis.yml index 227d1466f7..6003d215e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: