Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- declare -a ALL=("domain-config-backend mapping smartdocs-scan/supervisor smartdocs-scan/email-handler")
- declare -A dependencies=(
- [domain-config-backend]="domain-config-backend supervisor email-handler"
- [mapping]="mapping supervisor"
- [supervisor]="supervisor email-handler"
- [services]="supervisor"
- [smartdocs-scan-common]="email-handler supervisor"
- )
- echo "Building for PR=$TRAVIS_PULL_REQUEST: travis_branch=$TRAVIS_BRANCH (ci_testing_branch=$CI_TESTING_BRANCH)"
- #collect changed modules
- CHANGES="mapping supervisor smartdocs-scan-common"
- #find out which services need to be redeployed
- if [ "$(echo -ne ${CHANGES} | wc -m)" -eq 0 ]; then
- #no changed modules found. doesn't sound right. Let's deploy everything
- echo "no changes found"
- SERVICES=$ALL
- else
- for c in $CHANGES; do
- SERVICES+=("${dependencies[$c]}")
- done
- fi
- echo "changes=($CHANGES)"
- echo "expecting services=(mapping supervisor)"
- echo "actual services=($SERVICES)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement