mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-4625] Add ADF linking to unit tests and e2es (#2853)
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
PARENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
|
||||
# Build options -----------------------------------------------------------------------
|
||||
# Build and test options -----------------------------------------------------------------------
|
||||
export BUILD_OPTS="--configuration=production,e2e"
|
||||
export TEST_OPTS=""
|
||||
export E2E_PROTRACTOR_OPTS=""
|
||||
export E2E_TSCONFIG="tsconfig.e2e.json"
|
||||
|
||||
# Commit settings for ADF linking -----------------------------------------------------
|
||||
export HEAD_COMMIT_HASH=${TRAVIS_PULL_REQUEST_SHA:-${TRAVIS_COMMIT}}
|
||||
|
@@ -29,6 +29,6 @@ done
|
||||
echo "Run alfresco-content-e2e protractor with options $OPTIONS"
|
||||
echo "./node_modules/.bin/protractor \"./protractor.conf.js\" $OPTIONS || exit 1"
|
||||
|
||||
./node_modules/.bin/tsc -p "./e2e/tsconfig.e2e.json" || exit 1;
|
||||
./node_modules/.bin/tsc -p "./e2e/$E2E_TSCONFIG" || exit 1;
|
||||
./node_modules/.bin/http-server -c-1 $CONTENT_CE_DIST_PATH -p 4200 > /dev/null &\
|
||||
./node_modules/.bin/protractor "./protractor.conf.js" $OPTIONS || exit 1
|
||||
./node_modules/.bin/protractor "./protractor.conf.js" $OPTIONS $E2E_PROTRACTOR_OPTS || exit 1
|
||||
|
@@ -6,6 +6,9 @@
|
||||
# ---------------------------------------------------------------
|
||||
if [[ $COMMIT_MESSAGE == *"[link-adf:"* ]]; then
|
||||
export BUILD_OPTS="--configuration=adfprod,e2e"
|
||||
export TEST_OPTS="--configuration=adfprod"
|
||||
export E2E_PROTRACTOR_OPTS="--with-local-adf"
|
||||
export E2E_TSCONFIG="tsconfig.e2e.adf.json"
|
||||
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
|
||||
|
Reference in New Issue
Block a user