Skip to content

Commit

Permalink
Disable branch test on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Jun 21, 2018
1 parent a73f255 commit d3a878b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions local/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ func TestGetRepoRemote(t *testing.T) {
}

func TestGetRepoCurrentBranch(t *testing.T) {
// This test does not work on Travis, since Travis cloning doesn't always
// set up branches correctly (typically detached)
if os.Getenv("TRAVIS") == "true" {
t.Skip("skipping test because of Travis")
}
_, err := GetRepoCurrentBranch()
if err != nil {
fmt.Print(err)
Expand Down

0 comments on commit d3a878b

Please sign in to comment.