mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* Short circuit e2e in case lib not affected * Use base and head * Remove useless schema * Run everything on cron
27 lines
817 B
Bash
Executable File
27 lines
817 B
Bash
Executable File
#!/usr/bin/env bash
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
cd $DIR
|
|
cd ../../
|
|
rm -rf dist/libs
|
|
echo "====== Run lib ====="
|
|
|
|
if [ "$CI" = "true" ]; then
|
|
echo "Building libs for production with NX_FLAG $NX_CALCULATION_FLAGS"
|
|
NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx affected:build $NX_CALCULATION_FLAGS --prod --exclude="demoshell,cli,testing" || exit 1
|
|
else
|
|
echo "Building libs for development with NX_FLAG $NX_CALCULATION_FLAGS"
|
|
NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx affected:build $NX_CALCULATION_FLAGS --exclude=demoshell || exit 1
|
|
fi
|
|
|
|
echo "====== run core ====="
|
|
./scripts/build/build-core.sh || exit 1
|
|
|
|
echo "====== Run testing ====="
|
|
./scripts/build/build-testing.sh || exit 1
|
|
|
|
echo "====== Run Cli ====="
|
|
./scripts/build/build-cli.sh || exit 1
|
|
|
|
|