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 34bfa5b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions local/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ func TestGetRepoRemote(t *testing.T) {
}

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

func TestCheckForGit(t *testing.T) {
Expand Down

0 comments on commit 34bfa5b

Please sign in to comment.