Skip to content

Commit

Permalink
fix travis-ci by mocking git user
Browse files Browse the repository at this point in the history
Tests assumed user already has a git environment user setup, but
travis-ci does not.  Mock the user setup in our fake $HOME so travis-ci
tests work again.

Auditors: csilvers

Test Plan:  deploy to alternate branch on github, watch travis-ci
results
  • Loading branch information
Matthew Rothenberg committed Sep 30, 2015
1 parent 9e22729 commit c48aec9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ has certain configuration files installed.
$ echo "git is fun lol" > $HOME/.git_template/commit_template
$ echo "[monkey]\n\tking = sun wukong" > $HOME/.gitconfig.khan

SETUP: let's assume the user already has personal git setup.

$ git config --global user.email "fleetwood@gmail.com"
$ git config --global user.name "Fleet Wood"

--------------------------------------------------------------------------------
We can use ka-clone to clone an arbitrary repository:

Expand Down
5 changes: 5 additions & 0 deletions examples/errors.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ has certain configuration files installed.
$ echo "git is fun lol" > $HOME/.git_template/commit_template
$ echo "[monkey]\n\tking = sun wukong" > $HOME/.gitconfig.khan

SETUP: let's assume the user already has personal git setup.

$ git config --global user.email "fleetwood@gmail.com"
$ git config --global user.name "Fleet Wood"

--------------------------------------------------------------------------------
Using ka-clone from a nonexistent source should throw an intelligent error:

Expand Down

0 comments on commit c48aec9

Please sign in to comment.