production builds for CI runs

This commit is contained in:
Denys Vuika
2020-07-03 18:25:49 +01:00
parent f691dc90dc
commit 298fec08c1
15 changed files with 91 additions and 7 deletions

View File

@@ -6,7 +6,14 @@ cd $DIR/../..
echo "====== Content Services ======"
echo "====== Build ======"
npm run ng -- build content-services || exit 1
if [ "$CI" = "true" ]; then
echo "Building content-services for production"
npm run ng -- build content-services --prod || exit 1
else
echo "Building content-services for development"
npm run ng -- build content-services || exit 1
fi
echo "====== Build style ======"
node ./lib/config/bundle-content-services-scss.js || exit 1

View File

@@ -6,7 +6,14 @@ cd $DIR/../..
echo "====== Core ======"
echo "====== Build ======"
npm run ng -- build core|| exit 1
if [ "$CI" = "true" ]; then
echo "Building core for production"
npm run ng -- build core --prod || exit 1
else
echo "Building core for development"
npm run ng -- build core || exit 1
fi
echo "====== Build style ======"
node ./lib/config/bundle-core-scss.js || exit 1

View File

@@ -4,4 +4,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../..
npm run ng -- build extensions
if [ "$CI" = "true" ]; then
echo "Building extensions for production"
npm run ng -- build extensions --prod || exit 1
else
echo "Building extensions for development"
npm run ng -- build extensions || exit 1
fi

View File

@@ -6,7 +6,14 @@ cd $DIR/../..
echo "====== Insights ======"
echo "====== Build ======"
npm run ng -- build insights || exit 1
if [ "$CI" = "true" ]; then
echo "Building insights for production"
npm run ng -- build insights --prod || exit 1
else
echo "Building insights for development"
npm run ng -- build insights || exit 1
fi
echo "====== Build style ======"
node ./lib/config/bundle-insights-scss.js || exit 1

View File

@@ -6,7 +6,14 @@ cd $DIR/../..
echo "====== Process Services Cloud ======"
echo "====== Build ======"
npm run ng -- build process-services-cloud || exit 1
if [ "$CI" = "true" ]; then
echo "Building process-services-cloud for production"
npm run ng -- build process-services-cloud --prod || exit 1
else
echo "Building process-services-cloud for development"
npm run ng -- build process-services-cloud || exit 1
fi
echo "====== Build style ======"
node ./lib/config/bundle-process-services-cloud-scss.js || exit 1

View File

@@ -6,7 +6,14 @@ cd $DIR/../..
echo "====== Process Services ======"
echo "====== Build ======"
npm run ng -- build process-services || exit 1
if [ "$CI" = "true" ]; then
echo "Building process-services for production"
npm run ng -- build process-services --prod || exit 1
else
echo "Building process-services for development"
npm run ng -- build process-services || exit 1
fi
echo "====== Build style ======"
node ./lib/config/bundle-process-services-scss.js || exit 1

View File

@@ -6,4 +6,11 @@ cd $DIR/../..
echo "====== Testing ======"
echo "====== Build ======"
npm run ng -- build testing || exit 1
if [ "$CI" = "true" ]; then
echo "Building testing for production"
npm run ng -- build testing --prod || exit 1
else
echo "Building testing for development"
npm run ng -- build testing || exit 1
fi