Skip to content

Commit

Permalink
Update install_mysql_5.6.sh travis script to check if current version…
Browse files Browse the repository at this point in the history
… is already 5.6. If so, skip install.
  • Loading branch information
diosmosis committed Apr 28, 2015
1 parent ba112dc commit 105051b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/travis/install_mysql_5.6.sh
Expand Up @@ -5,6 +5,12 @@ if [ "$SKIP_INSTALL_MYSQL_56" == "1" ]; then
exit 0;
fi

CURRENT_VERSION=`mysql -e "SELECT VERSION();"`
if [[ "$CURRENT_VERSION" =~ 5\.6 ]]; then
echo "MySQL 5.6 already installed."
exit 0
fi

# remove mysql 5.5
sudo apt-get remove mysql-common mysql-server-5.5 mysql-server-core-5.5 mysql-client-5.5 mysql-client-core-5.5 > /dev/null
sudo apt-get autoremove > /dev/null
Expand Down

0 comments on commit 105051b

Please sign in to comment.