forked from sirupsen/logrus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
19 changed files
with
241 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,25 @@ | ||
language: go | ||
go_import_path: github.com/sirupsen/logrus | ||
git: | ||
depth: 1 | ||
env: | ||
- GOMAXPROCS=4 GORACE=halt_on_error=1 | ||
- GO111MODULE=on | ||
- GO111MODULE=off | ||
go: [ 1.11.x, 1.12.x ] | ||
os: [ linux, osx ] | ||
matrix: | ||
include: | ||
- go: 1.10.x | ||
install: | ||
- go get github.com/stretchr/testify/assert | ||
- go get golang.org/x/crypto/ssh/terminal | ||
- go get golang.org/x/sys/unix | ||
- go get golang.org/x/sys/windows | ||
script: | ||
- go test -race -v ./... | ||
- go: 1.11.x | ||
env: GO111MODULE=on | ||
install: | ||
- go mod download | ||
script: | ||
- go test -race -v ./... | ||
- go: 1.11.x | ||
exclude: | ||
- go: 1.12.x | ||
env: GO111MODULE=off | ||
install: | ||
- go get github.com/stretchr/testify/assert | ||
- go get golang.org/x/crypto/ssh/terminal | ||
- go get golang.org/x/sys/unix | ||
- go get golang.org/x/sys/windows | ||
script: | ||
- go test -race -v ./... | ||
- go: 1.10.x | ||
install: | ||
- go get github.com/stretchr/testify/assert | ||
- go get golang.org/x/crypto/ssh/terminal | ||
- go get golang.org/x/sys/unix | ||
- go get golang.org/x/sys/windows | ||
script: | ||
- go test -race -v -tags appengine ./... | ||
- go: 1.11.x | ||
env: GO111MODULE=on | ||
install: | ||
- go mod download | ||
script: | ||
- go test -race -v -tags appengine ./... | ||
- go: 1.11.x | ||
env: GO111MODULE=off | ||
install: | ||
- go get github.com/stretchr/testify/assert | ||
- go get golang.org/x/crypto/ssh/terminal | ||
- go get golang.org/x/sys/unix | ||
- go get golang.org/x/sys/windows | ||
script: | ||
- go test -race -v -tags appengine ./... | ||
os: osx | ||
install: | ||
- ./travis/install.sh | ||
- if [[ "$GO111MODULE" == "on" ]]; then go mod download; fi | ||
- if [[ "$GO111MODULE" == "off" ]]; then go get github.com/stretchr/testify/assert golang.org/x/sys/unix github.com/konsorten/go-windows-terminal-sequences; fi | ||
script: | ||
- ./travis/cross_build.sh | ||
- export GOMAXPROCS=4 | ||
- export GORACE=halt_on_error=1 | ||
- go test -race -v ./... | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go test -race -v -tags appengine ./... ; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// +build darwin dragonfly freebsd netbsd openbsd | ||
|
||
package logrus | ||
|
||
import "golang.org/x/sys/unix" | ||
|
||
const ioctlReadTermios = unix.TIOCGETA | ||
|
||
func isTerminal(fd int) bool { | ||
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios) | ||
return err == nil | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build js | ||
// +build js nacl plan9 | ||
|
||
package logrus | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package logrus | ||
|
||
import ( | ||
"golang.org/x/sys/unix" | ||
) | ||
|
||
// IsTerminal returns true if the given file descriptor is a terminal. | ||
func isTerminal(fd int) bool { | ||
_, err := unix.IoctlGetTermio(fd, unix.TCGETA) | ||
return err == nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// +build linux aix | ||
|
||
package logrus | ||
|
||
import "golang.org/x/sys/unix" | ||
|
||
const ioctlReadTermios = unix.TCGETS | ||
|
||
func isTerminal(fd int) bool { | ||
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios) | ||
return err == nil | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.