Skip to content

Commit

Permalink
Added debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Sep 4, 2017
1 parent fd28926 commit 7488049
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."
} || {
Expand All @@ -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."
}
Expand Down

0 comments on commit 7488049

Please sign in to comment.