-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
242 additions
and
393 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,28 +1,35 @@ | ||
dist: xenial | ||
|
||
os: | ||
- linux | ||
|
||
language: go | ||
jobs: | ||
include: | ||
- stage: common | ||
|
||
go: | ||
- "1.14.x" | ||
- tip | ||
|
||
go: | ||
- "1.14.x" | ||
- tip | ||
matrix: | ||
allow_failures: | ||
- go: tip | ||
|
||
matrix: | ||
allow_failures: | ||
- go: tip | ||
cache: | ||
directories: | ||
- $GOPATH/pkg/mod | ||
|
||
env: | ||
- GOLANGCI_RELEASE="v1.26.0" | ||
env: | ||
- GOLANGCI_RELEASE="v1.26.0" | ||
|
||
before_install: | ||
- GO111MODULE=off go get github.com/mattn/goveralls | ||
- GO111MODULE=off go get github.com/lawrencewoodman/roveralls | ||
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_RELEASE} | ||
before_install: | ||
- GO111MODULE=off go get github.com/mattn/goveralls | ||
- GO111MODULE=off go get github.com/lawrencewoodman/roveralls | ||
|
||
script: | ||
- make test | ||
- make lint | ||
- travis_wait 20 roveralls | ||
- goveralls -coverprofile=roveralls.coverprofile -service=travis-ci | ||
script: | ||
- make test | ||
- travis_wait 20 roveralls | ||
- goveralls -coverprofile=roveralls.coverprofile -service=travis-ci | ||
- before_install: | ||
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_RELEASE} | ||
script: | ||
- make lint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package config | ||
|
||
// FAST_POLL used for fast testing | ||
var FAST_POLL = false |
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,23 @@ | ||
package testutils | ||
|
||
import ( | ||
"io/ioutil" | ||
"os" | ||
|
||
"log" | ||
|
||
"github.com/sirupsen/logrus" | ||
"sigs.k8s.io/external-dns/internal/config" | ||
) | ||
|
||
func init() { | ||
config.FAST_POLL = true | ||
if os.Getenv("DEBUG") == "" { | ||
logrus.SetOutput(ioutil.Discard) | ||
log.SetOutput(ioutil.Discard) | ||
} else { | ||
if level, err := logrus.ParseLevel(os.Getenv("DEBUG")); err == nil { | ||
logrus.SetLevel(level) | ||
} | ||
} | ||
} |
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
Oops, something went wrong.