Travis - Prints the dependencies inside the logs (#3997)

* Remove the tmp folder inside the smart-build script. Print the deps file to see the current dependencies

* Use the alpha of the latest lib published on npm
This commit is contained in:
Maurizio Vitale 2018-11-21 14:56:55 +00:00 committed by Eugenio Romano
parent 539850612e
commit 705fb10a65
4 changed files with 10 additions and 5 deletions

View File

@ -48,7 +48,7 @@ jobs:
- npm install - npm install
- ./scripts/lint.sh || exit 1 - ./scripts/lint.sh || exit 1
- npm run spellcheck || exit 1 - npm run spellcheck || exit 1
- rm -rf tmp && (./scripts/smart-build.sh -b $TRAVIS_BRANCH || exit 1;); - (./scripts/smart-build.sh -b $TRAVIS_BRANCH || exit 1;);
- npm run build:dist || exit 1 - npm run build:dist || exit 1
- stage: Unit test - stage: Unit test
name: core name: core

View File

@ -43,6 +43,7 @@ if [ ! -f $DIRECTORY/deps.txt ]; then
npm run affected:libs -- $HEAD_SHA_BRANCH "HEAD" > $DIRECTORY/deps.txt npm run affected:libs -- $HEAD_SHA_BRANCH "HEAD" > $DIRECTORY/deps.txt
fi fi
cat $DIRECTORY/deps.txt
#echo "extensions" > deps.txt #echo "extensions" > deps.txt
#clean file #clean file

View File

@ -25,7 +25,10 @@ then
exit 0 exit 0
fi fi
#reset the tmp folder
rm -rf tmp
affected="$(./scripts/affected-libs.sh -b "$BRANCH_NAME")" affected="$(./scripts/affected-libs.sh -b "$BRANCH_NAME")"
echo $affected
libs=(`echo $affected | sed 's/^$/\n/g'`) libs=(`echo $affected | sed 's/^$/\n/g'`)
#core #core

View File

@ -19,6 +19,8 @@ cd `dirname $0`
prefix="@alfresco\/adf-" prefix="@alfresco\/adf-"
projectslength=${#projects[@]}
show_help() { show_help() {
echo "Usage: update-version.sh" echo "Usage: update-version.sh"
echo "" echo ""
@ -42,8 +44,9 @@ skip_js() {
} }
last_alpha_mode() { last_alpha_mode() {
echo "====== Auto find last ALPHA version =====" length=`expr $projectslength - 1`
VERSION=$(npm view @alfresco/adf-core@alpha version) echo "====== Auto find last ALPHA version of ${projects[${length}]} ====="
VERSION=$(npm view @alfresco/adf-${projects[${length}]}@alpha version)
echo "====== version lib ${VERSION} =====" echo "====== version lib ${VERSION} ====="
@ -219,8 +222,6 @@ fi
cd "$DIR/../" cd "$DIR/../"
projectslength=${#projects[@]}
echo "====== UPDATE COMPONENTS ======" echo "====== UPDATE COMPONENTS ======"
# use for loop to read all values and indexes # use for loop to read all values and indexes