Maurizio Vitale 109e99786b
Short circuit e2e in case lib not affected (#7801)
* Short circuit e2e in case lib not affected

* Use base and head

* Remove useless schema

* Run everything on cron
2022-08-30 16:07:55 +01:00

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