Commit 40e5b433 authored by tavit ohanian's avatar tavit ohanian

initial port

parent 49d401a6
Pipeline #738 failed with stages
in 8 seconds
stages:
- build
- test
variables:
BUILD_DIR: "/tmp/$CI_CONCURRENT_PROJECT_ID"
before_script:
- mkdir -p $BUILD_DIR/src
- cd $BUILD_DIR/src
- if [ -d $CI_PROJECT_DIR ]
- then
- echo "soft link $CI_PROJECT_DIR exists"
- else
- echo "creating soft link $CI_PROJECT_DIR"
- ln -s $CI_PROJECT_DIR
- fi
- cd $CI_PROJECT_DIR
build:
stage: build
tags:
- testing
script:
- echo $CI_JOB_STAGE
- go build
test:
stage: test
tags:
- testing
script:
- echo $CI_JOB_STAGE
- go test -cover
coverage: '/coverage: \d+.\d+% of statements/'
This diff is collapsed.
......@@ -4,12 +4,12 @@ import (
"context"
"time"
cid "github.com/ipfs/go-cid"
logging "github.com/ipfs/go-log"
cid "gitlab.dms3.io/dms3/public/go-cid"
logging "gitlab.dms3.io/dms3/public/go-log"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-core/routing"
"github.com/libp2p/go-libp2p-testing/net"
"gitlab.dms3.io/p2p/go-p2p-core/peer"
"gitlab.dms3.io/p2p/go-p2p-core/routing"
tnet "gitlab.dms3.io/p2p/go-p2p-testing/net"
ma "github.com/multiformats/go-multiaddr"
)
......
......@@ -6,14 +6,14 @@ import (
"sync"
"time"
cid "github.com/ipfs/go-cid"
ds "github.com/ipfs/go-datastore"
dssync "github.com/ipfs/go-datastore/sync"
cid "gitlab.dms3.io/dms3/public/go-cid"
ds "gitlab.dms3.io/dms3/public/go-datastore"
dssync "gitlab.dms3.io/dms3/public/go-datastore/sync"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-testing/net"
"gitlab.dms3.io/p2p/go-p2p-core/peer"
tnet "gitlab.dms3.io/p2p/go-p2p-testing/net"
offline "github.com/ipfs/go-ipfs-routing/offline"
offline "gitlab.dms3.io/dms3/public/go-dms3-routing/offline"
)
// server is the mockrouting.Client's private interface to the routing server
......
......@@ -5,12 +5,12 @@ import (
"testing"
"time"
cid "github.com/ipfs/go-cid"
delay "github.com/ipfs/go-ipfs-delay"
u "github.com/ipfs/go-ipfs-util"
cid "gitlab.dms3.io/dms3/public/go-cid"
delay "gitlab.dms3.io/dms3/public/go-dms3-delay"
u "gitlab.dms3.io/dms3/public/go-dms3-util"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-testing/net"
"gitlab.dms3.io/p2p/go-p2p-core/peer"
tnet "gitlab.dms3.io/p2p/go-p2p-testing/net"
)
func TestKeyNotFound(t *testing.T) {
......
......@@ -7,12 +7,12 @@ package mockrouting
import (
"context"
ds "github.com/ipfs/go-datastore"
delay "github.com/ipfs/go-ipfs-delay"
ds "gitlab.dms3.io/dms3/public/go-datastore"
delay "gitlab.dms3.io/dms3/public/go-dms3-delay"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-core/routing"
"github.com/libp2p/go-libp2p-testing/net"
"gitlab.dms3.io/p2p/go-p2p-core/peer"
"gitlab.dms3.io/p2p/go-p2p-core/routing"
tnet "gitlab.dms3.io/p2p/go-p2p-testing/net"
)
// MockValidator is a record validator that always returns success.
......
......@@ -5,14 +5,14 @@ import (
"context"
"errors"
cid "github.com/ipfs/go-cid"
ds "github.com/ipfs/go-datastore"
cid "gitlab.dms3.io/dms3/public/go-cid"
ds "gitlab.dms3.io/dms3/public/go-datastore"
"github.com/libp2p/go-libp2p-core/host"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-core/routing"
"gitlab.dms3.io/p2p/go-p2p-core/host"
"gitlab.dms3.io/p2p/go-p2p-core/peer"
"gitlab.dms3.io/p2p/go-p2p-core/routing"
record "github.com/libp2p/go-libp2p-record"
record "gitlab.dms3.io/p2p/go-p2p-record"
)
type nilclient struct {
......
......@@ -9,15 +9,15 @@ import (
"time"
proto "github.com/gogo/protobuf/proto"
cid "github.com/ipfs/go-cid"
ds "github.com/ipfs/go-datastore"
dshelp "github.com/ipfs/go-ipfs-ds-help"
cid "gitlab.dms3.io/dms3/public/go-cid"
ds "gitlab.dms3.io/dms3/public/go-datastore"
dshelp "gitlab.dms3.io/dms3/public/go-dms3-ds-help"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-core/routing"
"gitlab.dms3.io/p2p/go-p2p-core/peer"
"gitlab.dms3.io/p2p/go-p2p-core/routing"
record "github.com/libp2p/go-libp2p-record"
pb "github.com/libp2p/go-libp2p-record/pb"
record "gitlab.dms3.io/p2p/go-p2p-record"
pb "gitlab.dms3.io/p2p/go-p2p-record/pb"
)
// ErrOffline is returned when trying to perform operations that
......
......@@ -5,11 +5,11 @@ import (
"context"
"testing"
cid "github.com/ipfs/go-cid"
ds "github.com/ipfs/go-datastore"
cid "gitlab.dms3.io/dms3/public/go-cid"
ds "gitlab.dms3.io/dms3/public/go-datastore"
"github.com/libp2p/go-libp2p-core/routing"
"github.com/libp2p/go-libp2p-core/test"
"gitlab.dms3.io/p2p/go-p2p-core/routing"
"gitlab.dms3.io/p2p/go-p2p-core/test"
mh "github.com/multiformats/go-multihash"
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment