mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-19 04:14:24 +00:00
releaser: Skip Git test on Travis
This commit is contained in:
parent
a695202ff5
commit
d6957c192d
1 changed files with 3 additions and 4 deletions
|
@ -18,7 +18,7 @@ package releaser
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"runtime"
|
"runtime"
|
||||||
|
@ -27,9 +27,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestReleaseNotesWriter(t *testing.T) {
|
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
|
// 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
|
var b bytes.Buffer
|
||||||
|
@ -40,5 +40,4 @@ func TestReleaseNotesWriter(t *testing.T) {
|
||||||
|
|
||||||
require.NoError(t, writeReleaseNotes("0.20", infos, &b))
|
require.NoError(t, writeReleaseNotes("0.20", infos, &b))
|
||||||
|
|
||||||
fmt.Println(">>>", b.String())
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue