git clone [email protected]:ripple/DockerDevEnv.git
cd DockerDevEnv
test/bats/bin/bats test/github.bats
OUTPUT
✓ git installed
✗ GH token conigured
(in test file test/github.bats, line 10)
`result=$(curl -s -u $(cat $CRED_DIR/.github_user_id):$(cat $CRED_DIR/.github_auth_token) https://api.github.com/users/$(cat $CRED_DIR/.github_user_id) | jq '.total_private_repos')' failed with status 127
/var/folders/c9/s6ftdx4d5wzdfttk9s5fx1040000gn/T/bats.1455.src: line 10: jq: command not found
cat: /tmp/secret/.github_user_id: No such file or directory
cat: /tmp/secret/.github_auth_token: No such file or directory
cat: /tmp/secret/.github_user_id: No such file or directory
2 tests, 1 failure
jq
is a required dependency. Installation instructions for OS X (https://github.com/stedolan/jq/wiki/Installation)
What I ended up doing:
brew update
brew install bison
// Ensure that this bison has priority, e.g. by running:
ln -s /usr/local/bin/bison ~/bin/bison
brew install oniguruma
brew install jq
- Run again:
test/bats/bin/bats test/github.bats
OUTPUT
✓ git installed
✗ GH token conigured
(in test file test/github.bats, line 11)
`[ "$result" != "null" ]' failed
cat: /tmp/secret/.github_user_id: No such file or directory
cat: /tmp/secret/.github_auth_token: No such file or directory
cat: /tmp/secret/.github_user_id: No such file or directory
2 tests, 1 failure
Configuration of a github_user_id and github_auth_token are required. After looking at the github.bats
file and SETTINGS.sh
file I figured out you need to edit SETTINGS.sh
to point to a directory where you create the two github files.
- I generated a private user token using
https://github.com/settings/tokens
and pasted that in.github_auth_token
- Created the
.github_user_id
file and put in my github email, since that's what I use to log in
- Run again
test/bats/bin/bats test/github.bats
✓ git installed
✗ GH token conigured
(in test file test/github.bats, line 11)
`[ "$result" != "null" ]' failed
2 tests, 1 failure
- Changed
.github_user_id
to just my usernamegeertweening
, still fails.
Now I'm stuck and don't know how to proceed without asking someone. The README should guide me through all these steps, make sure I understand what needs to be setup before I run the tests and how I need to set those things up