-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
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
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 |