revert: revert: ci(aio): exclude changes in aio/content folder

This reverts commit 72143e80da.

it seems that the previous build failure was a travis flake.

reverting the revert...
This commit is contained in:
Igor Minar 2017-07-13 16:22:57 -07:00
parent 9f28e838d3
commit 3d85f72652
1 changed files with 5 additions and 10 deletions

View File

@ -43,20 +43,15 @@ timestamp=$(date +%s)
payloadData="$payloadData\"timestamp\": $timestamp, "
# Add change source: application, dependencies, or 'application+dependencies'
yarnChanged=false
allChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE $parentDir | wc -l)
allChangedFileNames=$(git diff --name-only $TRAVIS_COMMIT_RANGE $parentDir)
applicationChanges=$(git diff --name-only $TRAVIS_COMMIT_RANGE $parentDir | grep -v ${parentDir}/content | grep -v ${parentDir}/yarn.lock | wc -l)
dependencyChanges=$(git diff --name-only $TRAVIS_COMMIT_RANGE ${parentDir}/yarn.lock | wc -l)
if [[ $allChangedFileNames == *"yarn.lock"* ]]; then
yarnChanged=true
fi
if [[ $allChangedFiles -eq 1 ]] && [[ "$yarnChanged" = true ]]; then
if [[ $dependencyChanges -eq 1 ]] && [[ $applicationChanges -eq 0 ]]; then
# only yarn.lock changed
change='dependencies'
elif [[ $allChangedFiles -gt 1 ]] && [[ "$yarnChanged" = true ]]; then
elif [[ $dependencyChanges -eq 1 ]] && [[ $applicationChanges -gt 0 ]]; then
change='application+dependencies'
elif [[ $allChangedFiles -gt 0 ]]; then
elif [[ $applicationChanges -gt 0 ]]; then
change='application'
else
# Nothing changed in aio/