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

Commit

Permalink
Merge pull request #810 from ppalaga/160127-travis
Browse files Browse the repository at this point in the history
Clean up travis.yml
  • Loading branch information
mtho11 committed Jan 27, 2016
2 parents ba7da2e + e9a879b commit be24e3b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jdk:
- oraclejdk8
install:
- mvn -s .travis.maven.settings.xml -version -B
- df -h
- df -h .
- du -sh $HOME/.m2/repository

before_script:
Expand All @@ -28,8 +28,6 @@ script:
echo "Building without deployment" ;
mvn -fae -s .travis.maven.settings.xml -Pitest clean install ;
fi
- df -h
- du -sh $HOME/.m2/repository
notifications:
email: false
env:
Expand All @@ -50,6 +48,7 @@ before_cache:
# This is important because Travis zips the chached directories to a temporary file on the same partition.
- availBytes=$(df -P . | tail -1 | awk '{print $4}')
- cachedBytes=$(du -cs "$HOME/.m2/repository" | tail -1 | awk '{print $1}')
- echo "Checking if the size of directories to cache ${cachedBytes} Bytes exceeds the free space ${availBytes} Bytes left on the current partition"
- if [ "${cachedBytes}" -gt "${availBytes}" ] ; then
echo "Cleaning the cached dirs (${cachedBytes} Bytes) because their size exceeds the free space (${availBytes} Bytes) left on the current partition"
rm -Rf "$HOME/.m2"
Expand Down

0 comments on commit be24e3b

Please sign in to comment.