Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update travis.yml config.
Added `utPLSQL-maven-plugin` and `utPLSQL-demo-project` to be triggered automatically after the build is finished.
  • Loading branch information
jgebal committed Jul 8, 2018
commit a3db2a5223ee6ecb0940c2cd20731400bffd1fc9
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ jobs:
- pip install mkdocs
before_script: skip
script:
# - if [[ ($TRAVIS_BRANCH == develop) && ($TRAVIS_PULL_REQUEST == false) ]]; then bash .travis/trigger_travis.sh $TRAVIS_ACCESS_TOKEN; fi
- bash .travis/trigger_travis.sh $TRAVIS_ACCESS_TOKEN #testing triggering
- if [[ ($TRAVIS_BRANCH == develop) && ($TRAVIS_PULL_REQUEST == false) ]]; then bash .travis/trigger_travis.sh $TRAVIS_ACCESS_TOKEN; fi
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/push_release_version.sh; fi
- bash .travis/build_docs.sh
- bash .travis/push_docs_to_gh_pages.sh
Expand Down
8 changes: 4 additions & 4 deletions .travis/trigger_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ TRAVIS_URL=travis-ci.org
BRANCH=develop
USER="utPLSQL"
RESULT=1
declare -a REPO_MATRIX=("utPLSQL-java-api" "utPLSQL-v2-v3-migration" "utPLSQL-cli")
declare -a REPO_MATRIX=("utPLSQL-java-api" "utPLSQL-v2-v3-migration" "utPLSQL-cli" "utPLSQL-maven-plugin" "utPLSQL-demo-project")

TOKEN=$1

Expand All @@ -30,7 +30,7 @@ else
fi

# For debugging:
echo "MESSAGE=$MESSAGE"
#echo "MESSAGE=$MESSAGE"

body="{
\"request\": {
Expand All @@ -52,13 +52,13 @@ for DOWNSTREAM_BUILD in "${REPO_MATRIX[@]}"; do
if grep -q '"@type": "error"' ${DOWNSTREAM_BUILD}-output.txt; then
RESULT=0
echoerr ""
echoerr "Failed to start ${DOWNSTREAM_BUILD}"
echoerr "ERROR: Failed to start ${DOWNSTREAM_BUILD}"
echoerr ""
fi
if grep -q 'access denied' ${DOWNSTREAM_BUILD}-output.txt; then
RESULT=0
echoerr ""
echoerr "Failed to start ${DOWNSTREAM_BUILD}"
echoerr "ERROR: Failed to start ${DOWNSTREAM_BUILD} - access denied"
echoerr ""
fi

Expand Down