Merge pull request #5 from libp2p/chore/circleci

chore: switch to circleci
This commit is contained in:
Steven Allen
2020-03-30 14:32:45 -07:00
committed by GitHub
3 changed files with 14 additions and 15 deletions
+11
View File
@@ -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
View File
@@ -1,15 +0,0 @@
language: go
go:
- 1.13.x
os:
- linux
- osx
- windows
jobs:
fast_finish: true
script:
- go test -v -race .
+3
View File
@@ -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())