Skip to content

Commit

Permalink
scripts for easy building
Browse files Browse the repository at this point in the history
  • Loading branch information
yogesh nachnani committed May 5, 2016
1 parent 55b2fbf commit 430ef05
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
set -x
set -e
echo "Usage: ./build.sh [noTests]"

NO_TESTS_FLAG=$1
echo "Building.."
mvn -q clean install -DskipTests
echo "Checking if we should run tests.."
if [ "$NO_TESTS_FLAG" != "noTests" ]; then
./setup_db.sh
mvn clean integration-test
fi
6 changes: 6 additions & 0 deletions setup_db.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e
set -x
echo "drop database if exists flux" | mysql -uroot
echo "create database flux" | mysql -uroot
mvn -pl :persistence-mysql liquibase:update

0 comments on commit 430ef05

Please sign in to comment.