Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,37 @@
# use `printing-bundle` to build also the zip bundle
#
# Example
# $ ./build.sh 2022.02.00 binary
# $ ./build.sh v2024.02.02 binary

set -u
set -e

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

echo "Building MS2 bundles"
echo `date`
date
npm run fe:build

echo "Cleanup Documentation"
echo `date`
date
npm run jsdoc:clean

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

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

echo "Creating Documentation"
echo `date`
date
npm run jsdoc:build

echo "Building final WAR package"
echo `date`
date
if [ $# -eq 0 ]
then
cd java
Expand All @@ -55,14 +56,14 @@ if [ $# -eq 0 ]
cd java
mvn clean install
cd ..
mvn clean install -Dmapstore2.version=$1
mvn clean install -Dmapstore2.version="$1"
else
cd java
mvn clean install -Dmapstore2.version=$1 -P$2
mvn clean install -Dmapstore2.version="$1" -P"$2"
cd ..
mvn clean install -Dmapstore2.version=$1 -P$2
mvn clean install -Dmapstore2.version="$1" -P"$2"
fi

echo "Final Cleanup"
echo `date`
date
npm run jsdoc:clean