MichalKinas 5ac0ff616d
[ACA-4625] ADF linking in ACA (#2841)
* [ACA-4625] ADF linking in ACA

* [ACA-4625] ADF linking docs

* [ACA-4625] Move adf linking to before install script

* [ACA-4625] Move ADF linking to before_install script

* [ACA-4625] Delete unused stage from Travis
2022-12-15 12:55:25 +01:00

20 lines
889 B
Bash
Executable File

# Note no #!/bin/sh as this should not spawn
# an extra shell, since this partial shell script
# is supposed to be invoked as part of another.
# ---------------------------------------------------------------
# ADF linking
# ---------------------------------------------------------------
if [[ $COMMIT_MESSAGE == *"[link-adf:"* ]]; then
export BUILD_OPTS="--configuration=adfprod,e2e"
BRANCH=`echo $COMMIT_MESSAGE | grep -o "\[link-adf\:[^]]*\]" | sed -e 's#\[link-adf:##g' | sed -e 's#\]##g'`
echo "Checking out ADF's branch: ${BRANCH}" && \
git clone https://github.com/Alfresco/alfresco-ng2-components.git --depth=1 --branch ${BRANCH} ../alfresco-ng2-components
# ADF theming needs it the styling
CWD=`pwd`
cd ../alfresco-ng2-components
npm install @angular/material
cd $CWD
else
echo -e "\e[32mUsing ADF from installed node_modules.\e[0m"
fi ;