releaser: Skip Git test on Travis
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 27 Apr 2017 08:59:00 +0000 (10:59 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 27 Apr 2017 08:59:00 +0000 (10:59 +0200)
releaser/releasenotes_writer_test.go

index d1151bffc40be2cdca9d3556c4569cc2f472f6c9..5b00ae68f902b1d03fc0f950424eec448828f7bc 100644 (file)
@@ -18,7 +18,7 @@ package releaser
 
 import (
        "bytes"
-       "fmt"
+       "os"
        "testing"
 
        "runtime"
@@ -27,9 +27,9 @@ import (
 )
 
 func TestReleaseNotesWriter(t *testing.T) {
-       if runtime.GOOS == "linux" {
+       if os.Getenv("CI") != "" {
                // Travis has an ancient git with no --invert-grep: https://github.com/travis-ci/travis-ci/issues/6328
-               t.Skip("Skip git test on Linux to make Travis happy.")
+               t.Skip("Skip git test on CI to make Travis happy.")
        }
 
        var b bytes.Buffer
@@ -40,5 +40,4 @@ func TestReleaseNotesWriter(t *testing.T) {
 
        require.NoError(t, writeReleaseNotes("0.20", infos, &b))
 
-       fmt.Println(">>>", b.String())
 }