Files
Aurora.3/install-flyway.sh
skull132 465ae330ac Travis Now Validates Migrations w/ Flyway (#2629)
Sets up Travis to install and run Flyway and our migrations on a MariaDB database in order to test them. If a migration is erroneous, this should catch it.
2017-06-10 09:26:28 +03:00

15 lines
380 B
Bash

#!/bin/sh
set -e
if [ -f "$HOME/flyway-${FLYWAY_BUILD}/flyway" ];
then
echo "Using cached Flyway directory."
else
echo "Setting up Flyway."
cd "$HOME"
curl "https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/${FLYWAY_BUILD}/flyway-commandline-${FLYWAY_BUILD}.tar.gz" -o flyway.tar.gz
tar -xf flyway.tar.gz
cd "flyway-${FLYWAY_BUILD}"
chmod +x flyway
fi