Skip to content

Commit

Permalink
Merge branch 'fixtravis3' of https://github.com/rsafonseca/cloudstack
Browse files Browse the repository at this point in the history
This closes apache#531
  • Loading branch information
wilderrodrigues committed Jul 1, 2015
2 parents 02c3d14 + e8c0c8f commit f72412a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/travis/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,18 @@ javac -version
echo -e "\nMaven Version: "
mvn -v

echo -e "\nDisk Status: "
df

echo -e "\nMemory Status: "
free

echo -e "\nCheck Git status"
git status

echo -e "\nCleaning up stale files in /tmp: "
sudo find /tmp -type f -mtime +2 | grep -v "`sudo lsof | grep /tmp |awk '{print $9}'|sed -e '1 d' |sort |uniq | tr \\n \|`" | xargs sudo rm -vf

echo -e "\nUpdating the system: "
sudo apt-get -q -y update > /dev/null

Expand All @@ -61,6 +70,8 @@ sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password passwor
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password your_password'
sudo apt-get -q -y install mysql-server > /dev/null

#Restart mysql if running to release deleted file locks on filesystem, if aready running
sudo status mysql | grep start && sudo stop mysql
sudo start mysql

echo -e "\nInstalling Development tools: "
Expand Down

0 comments on commit f72412a

Please sign in to comment.