Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
More verbose build script
  • Loading branch information
randomorder authored Jul 26, 2018
1 parent 890d3b8 commit 013d559
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,39 @@
#!/bin/bash
set -e

echo "Running NPM install to update dependencies"
echo `date`
npm install

echo "Building MS2 bundles"
echo `date`
npm run compile

echo "Cleanup Documentation"
echo `date`
npm run cleandoc

echo "Checking syntax"
echo `date`
npm run lint

echo "Run MapStore2 tests"
echo `date`
npm test

echo "Creating Documentation"
echo `date`
npm run doc

echo "Building final WAR package"
echo `date`
if [ $# -eq 0 ]
then
mvn clean install
else
mvn clean install -Dmapstore2.version=$1
fi

echo "Final Cleanup"
echo `date`
npm run cleandoc

0 comments on commit 013d559

Please sign in to comment.