Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .travis.sh #179

Merged
merged 1 commit into from
Dec 8, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions .travis.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -ev
MODS="$(git diff HEAD~1 Puppetfile | grep ^+ -B2 | grep mod | cut -d"'" -f2)"
MODS="$(git diff HEAD~1 Puppetfile | grep "^+" -B2 | grep mod | cut -d"'" -f2)"
rake validate_puppetfile SPEC_OPTS='--format documentation --color --backtrace' || exit 1
if [ "${MODS}" != "" ]; then
for module in ${MODS}; do
Expand All @@ -12,7 +12,7 @@ if [ "${MODS}" != "" ]; then
fi
done
else
echo "No changed module detected. You have to manually check whether this is OK."
echo "No changed module detected!"
git diff HEAD~1 Puppetfile
exit 1
exit 0
fi
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ notifications:
- "Change view : %{compare_url}"
- "Build details : %{build_url}"
channels:
- "irc.freenode.net#packstack-dev"
- "chat.freenode.net#packstack-dev"
on_success: always
on_failure: always
use_notice: true
Expand Down