Eugenio Romano f04c135377
Fix e2e test (#4981)
* fix core viewer

* increase rendition retry

* sso refresh before test

* general fix test

* try use last proxy

* avoid use proxy

* remove proxy

* fix setting tests

* fix share and sso test

* fix lint exclude

* fix sso

* fix some process services cloud e2e

* fix sso download

* exclude sso test

* fix cloud

* add logout content service test

* add logout core

* add logout search

* redefine global before all

* separate protracotr method

* try

* try multiple attempt before all

* add prefix group and users

* add prefix group and users

* add prefix group and users

* rexecute sso test

* fix process service visibility e2e

* split SSO login test

* fix SSO download

* fix SSO download

* fix some cloud issues

* fix some cloud issues

* fix some cloud issues

* share file fix cs

* fix cloud test
2019-08-08 17:52:45 +02:00

109 lines
1.8 KiB
Bash
Executable File

#!/usr/bin/env bash
eval BRANCH_NAME=""
eval GNU=false
show_help() {
echo "Usage: smart-build.sh"
echo ""
echo "-b branch name"
echo "-gnu for gnu"
}
branch_name(){
BRANCH_NAME=$1
}
gnu_mode() {
echo "====== GNU MODE ====="
GNU=true
}
while [[ $1 == -* ]]; do
case "$1" in
-b) branch_name $2; shift 2;;
-gnu) gnu_mode; shift;;
-*) echo "invalid option: $1" 1>&2; show_help; exit 0;;
esac
done
if [[ "$BRANCH_NAME" == "" ]]
then
echo "The branch name is mandatory"
exit 0
fi
if $GNU; then
gnu='-gnu'
else
gnu=''
fi
if [ $BRANCH_NAME == 'undefined' ]; then
echo "Rebase your branch"
exit 1
fi
#reset the tmp folder
affected="$(./scripts/affected-libs.sh ${gnu[@]} -b "$BRANCH_NAME")"
echo $affected
libs=(`echo $affected | sed 's/^$/\n/g'`)
echo "Builds"
#extensions
for i in "${libs[@]}"
do
if [ "$i" == "extensions$" ] ; then
./scripts/build/build-extensions.sh || exit 1;
fi
done
#core
for i in "${libs[@]}"
do
if [ "$i" == "core$" ] ; then
./scripts/build/build-core.sh || exit 1;
fi
done
#content-services
for i in "${libs[@]}"
do
if [ "$i" == "content-services$" ] ; then
./scripts/build/build-content-services.sh || exit 1;
fi
done
#process-services
for i in "${libs[@]}"
do
if [ "$i" == "process-services$" ] ; then
./scripts/build/build-process-services.sh || exit 1;
fi
done
#process-services-cloud
for i in "${libs[@]}"
do
if [ "$i" == "process-services-cloud$" ] ; then
./scripts/build/build-process-services-cloud.sh || exit 1;
fi
done
#insights
for i in "${libs[@]}"
do
if [ "$i" == "insights$" ] ; then
./scripts/build/build-insights.sh || exit 1;
fi
done
#testing
for i in "${libs[@]}"
do
if [ "$i" == "testing$" ] ; then
./scripts/build/build-testing.sh || exit 1;
fi
done