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

Skip to content

Commit a3db2a5

Browse files
committed
Update travis.yml config.
Added `utPLSQL-maven-plugin` and `utPLSQL-demo-project` to be triggered automatically after the build is finished.
1 parent 90b9db9 commit a3db2a5

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ jobs:
116116
- pip install mkdocs
117117
before_script: skip
118118
script:
119-
# - if [[ ($TRAVIS_BRANCH == develop) && ($TRAVIS_PULL_REQUEST == false) ]]; then bash .travis/trigger_travis.sh $TRAVIS_ACCESS_TOKEN; fi
120-
- bash .travis/trigger_travis.sh $TRAVIS_ACCESS_TOKEN #testing triggering
119+
- if [[ ($TRAVIS_BRANCH == develop) && ($TRAVIS_PULL_REQUEST == false) ]]; then bash .travis/trigger_travis.sh $TRAVIS_ACCESS_TOKEN; fi
121120
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/push_release_version.sh; fi
122121
- bash .travis/build_docs.sh
123122
- bash .travis/push_docs_to_gh_pages.sh

.travis/trigger_travis.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ TRAVIS_URL=travis-ci.org
1919
BRANCH=develop
2020
USER="utPLSQL"
2121
RESULT=1
22-
declare -a REPO_MATRIX=("utPLSQL-java-api" "utPLSQL-v2-v3-migration" "utPLSQL-cli")
22+
declare -a REPO_MATRIX=("utPLSQL-java-api" "utPLSQL-v2-v3-migration" "utPLSQL-cli" "utPLSQL-maven-plugin" "utPLSQL-demo-project")
2323

2424
TOKEN=$1
2525

@@ -30,7 +30,7 @@ else
3030
fi
3131

3232
# For debugging:
33-
echo "MESSAGE=$MESSAGE"
33+
#echo "MESSAGE=$MESSAGE"
3434

3535
body="{
3636
\"request\": {
@@ -52,13 +52,13 @@ for DOWNSTREAM_BUILD in "${REPO_MATRIX[@]}"; do
5252
if grep -q '"@type": "error"' ${DOWNSTREAM_BUILD}-output.txt; then
5353
RESULT=0
5454
echoerr ""
55-
echoerr "Failed to start ${DOWNSTREAM_BUILD}"
55+
echoerr "ERROR: Failed to start ${DOWNSTREAM_BUILD}"
5656
echoerr ""
5757
fi
5858
if grep -q 'access denied' ${DOWNSTREAM_BUILD}-output.txt; then
5959
RESULT=0
6060
echoerr ""
61-
echoerr "Failed to start ${DOWNSTREAM_BUILD}"
61+
echoerr "ERROR: Failed to start ${DOWNSTREAM_BUILD} - access denied"
6262
echoerr ""
6363
fi
6464

0 commit comments

Comments
 (0)