Created
January 23, 2017 16:19
-
-
Save sagikazarmark/5bf5f9c8288371bc6876f9f4bb8e3579 to your computer and use it in GitHub Desktop.
Liquibase installer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Travis script for installing Liquibase | |
# http://www.liquibase.org | |
# | |
if [ ! -d "$1" -o ! -d "$2" ]; then | |
echo "The installation and/or binary directory does not exists" 1>&2 | |
exit 1 | |
fi | |
LIQUIBASE_VERSION="3.5.3" | |
MYSQL_CONNECTOR_VERSION="5.1.40" | |
# Install Liquibase | |
wget https://github.com/liquibase/liquibase/releases/download/liquibase-parent-$LIQUIBASE_VERSION/liquibase-$LIQUIBASE_VERSION-bin.tar.gz -O /tmp/liquibase.tar.gz | |
mkdir -p $1/liquibase | |
tar xzf /tmp/liquibase.tar.gz -C $1/liquibase | |
ln -s $1/liquibase/liquibase $2/liquibase | |
# Install MySQL Connector | |
wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-$MYSQL_CONNECTOR_VERSION.tar.gz -O /tmp/mysql-connector.tar.gz | |
tar xzf /tmp/mysql-connector.tar.gz --strip-components=1 -C $1/liquibase/lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment