From 7488049ddc35e00be5a837b7bf1ad828e6bcb941 Mon Sep 17 00:00:00 2001 From: Nuwan Goonasekera Date: Mon, 4 Sep 2017 17:35:45 +0530 Subject: [PATCH] Added debug statements --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a141b7df..34d76b71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,6 +27,7 @@ before_install: # Check whether we need to run a test for this provider DOCS_REGEX='(\.rst$)|(^(docs))/' FILES_IN_CHANGESET="`git diff --name-only $TRAVIS_COMMIT_RANGE`" + echo $FILES_IN_CHANGESET echo "$FILES_IN_CHANGESET" | grep -qvE "$DOCS_REGEX" || { echo "Only docs were updated. Stopping build process." exit @@ -35,6 +36,7 @@ before_install: echo "Only docs and providers were updated. Checking whether this provider was changed." # Extract env and provider from $TOXENV into $PYENV and $PROVIDER respectively IFS=- read PYENV PROVIDER <<< "$TOXENV" + echo $PROVIDER echo "$FILES_IN_CHANGESET" | grep -qE "^(cloudbridge/cloud/providers/$PROVIDER)" && { echo "This provider was affected by this changeset. Running tests." } || { @@ -61,8 +63,9 @@ after_success: DOCS_REGEX='(\.rst$)|(^(docs))/' FILES_IN_CHANGESET="`git diff --name-only $TRAVIS_COMMIT_RANGE`" echo "$FILES_IN_CHANGESET" | grep -qvE "$DOCS_REGEX|(^(cloudbridge/cloud/providers))" && { - coveralls - codecov + coveralls & + codecov & + wait } || { echo "Only docs and providers were updated. Not running coverage." }