Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Remove subdirs of $HOME/.m2/repository older than 10 days in Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Oct 1, 2015
1 parent 52c4a44 commit 73ecbbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ jdk:
install:
- mvn -s .travis.maven.settings.xml -version -B
- df -h
- du -sh $HOME/.m2/repository
script:
- mvn -fae -s .travis.maven.settings.xml -Pitest clean install
- df -h
- du -sh $HOME/.m2/repository
notifications:
email: false
env:
Expand All @@ -27,6 +29,7 @@ before_cache:
# keep the cached local repo small by removing files older than 10 days
- find $HOME/.m2/repository -type d -ctime +10 -exec rm -rf {} \;
- df -h
- du -sh $HOME/.m2/repository
after_success:
- PROJECT_VERSION=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\['`
- echo ${PROJECT_VERSION} == ${TRAVIS_BRANCH} == ${TRAVIS_PULL_REQUEST}
Expand Down

0 comments on commit 73ecbbd

Please sign in to comment.