mirror of
https://github.com/netbirdio/go-netroute.git
synced 2026-05-22 17:11:07 -07:00
chore: switch to circleci
Our CircleCI scripts check builds on a ton of platforms and have better linting.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
version: 2.1
|
||||
orbs:
|
||||
ci-go: ipfs/ci-go@0.2
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
test:
|
||||
jobs:
|
||||
- ci-go/build
|
||||
- ci-go/lint
|
||||
- ci-go/test
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
language: go
|
||||
|
||||
go:
|
||||
- 1.13.x
|
||||
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
- windows
|
||||
|
||||
jobs:
|
||||
fast_finish: true
|
||||
|
||||
script:
|
||||
- go test -v -race .
|
||||
@@ -20,6 +20,9 @@ func TestRoute(t *testing.T) {
|
||||
var localAddr net.IP
|
||||
var hasV6 bool
|
||||
addrs, err := ifs[0].Addrs()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
for _, addr := range addrs {
|
||||
if strings.HasPrefix(addr.Network(), "ip") {
|
||||
localAddr, _, _ = net.ParseCIDR(addr.String())
|
||||
|
||||
Reference in New Issue
Block a user