* - Add missing env variables to fix perf tests failures in EE * - Delete source maps on CI only for EE * - Add the additional steps that might be required for running perf tests on EE * Update if condition * Update if condition * Switch to bash from using sh in build.sh * Check if the server started later * Update the check to see if the server has started Co-authored-by: Satish Gandham <hello@satishgandham.com>
19 lines
471 B
Bash
Executable File
19 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
GIT_SHA=$(eval git rev-parse HEAD)
|
|
echo $GIT_SHA
|
|
echo "Sentry Auth Token: $SENTRY_AUTH_TOKEN"
|
|
|
|
REACT_APP_SENTRY_RELEASE=$GIT_SHA REACT_APP_CLIENT_LOG_LEVEL=ERROR EXTEND_ESLINT=true craco --max-old-space-size=4096 build --config craco.build.config.js
|
|
|
|
|
|
if [ "$GITHUB_REPOSITORY" == "appsmithorg/appsmith-ee" ]; then
|
|
echo "Deleting sourcemaps for EE"
|
|
rm ./build/static/js/*.js.map
|
|
rm ./build/static/js/*.js.map.gz
|
|
fi
|
|
|
|
echo "build finished"
|