-
Notifications
You must be signed in to change notification settings - Fork 82
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
Test examples/ping-*/README.md #157
Merged
Merged
Changes from 5 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d3a7f0f
Prepare infrastructure for testing examples/
motiejus 9c458f2
Test examples/ping-json/README.md
motiejus 81b9c35
Test examples/ping-thrift-gen/README.md
motiejus dd0e4bc
Test examples/ping-thrift/README.md
motiejus 44cbefc
Temporarily allow failure in examples/
motiejus 63f7f04
Add comment to the shell script
motiejus 32aed65
Remove sudo: false from .travis.yml
motiejus 7a31583
Ask users to make setup first
motiejus 98552ea
Fix indentation
motiejus 6042e48
Clarify cram usage for READMEs
motiejus 1c5ab95
Merge branch 'dev' into motiejus-glide-examples
motiejus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ hosts.json | |
coverage.out | ||
lint.log | ||
/vendor/ | ||
/_venv/ | ||
README.md.err | ||
tick-cluster.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [[ ! -f "_venv/bin/activate" ]]; then | ||
virtualenv _venv | ||
fi | ||
|
||
. _venv/bin/activate | ||
|
||
if [[ -z "$(which cram)" ]]; then | ||
./_venv/bin/pip install cram | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Common functions for test code | ||
|
||
declare project_root="${0%/*}/.." | ||
declare ringpop_common_dir="${0%/*}/ringpop-common" | ||
declare ringpop_common_branch="master" | ||
|
||
# | ||
# Clones or updates the ringpop-common repository. | ||
# | ||
fetch-ringpop-common() { | ||
if [ ! -e "$ringpop_common_dir" ]; then | ||
run git clone --depth=1 https://github.com/uber/ringpop-common.git "$ringpop_common_dir" --branch "$ringpop_common_branch" | ||
fi | ||
|
||
run cd "$ringpop_common_dir" | ||
#run git checkout latest version of $ringpop_common_branch | ||
run git fetch origin "$ringpop_common_branch" | ||
run git checkout "FETCH_HEAD" | ||
|
||
run cd - >/dev/null | ||
|
||
run cd "${ringpop_common_dir}/$1" | ||
if [[ ! -d "node_modules" && ! -d "../node_modules" ]]; then | ||
run npm install #>/dev/null | ||
fi | ||
run cd - >/dev/null | ||
} | ||
|
||
# | ||
# Copy stdin to stdout but prefix each line with the specified string. | ||
# | ||
prefix() { | ||
local _prefix= | ||
|
||
[ -n "$1" ] && _prefix="[$1] " | ||
while IFS= read -r -t 30 line; do | ||
echo "${_prefix}${line}" | ||
done | ||
} | ||
|
||
# | ||
# Echos and runs the specified command. | ||
# | ||
run() { | ||
echo "+ $@" >&2 | ||
"$@" | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is
sudo: false
required? IIRC, this is the defaultThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftovers from development process. Good catch, removed.