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 ( ...@@ -4,12 +4,12 @@ import (
"context" "context"
"time" "time"
cid "github.com/ipfs/go-cid" cid "gitlab.dms3.io/dms3/public/go-cid"
logging "github.com/ipfs/go-log" logging "gitlab.dms3.io/dms3/public/go-log"
"github.com/libp2p/go-libp2p-core/peer" "gitlab.dms3.io/p2p/go-p2p-core/peer"
"github.com/libp2p/go-libp2p-core/routing" "gitlab.dms3.io/p2p/go-p2p-core/routing"
"github.com/libp2p/go-libp2p-testing/net" tnet "gitlab.dms3.io/p2p/go-p2p-testing/net"
ma "github.com/multiformats/go-multiaddr" ma "github.com/multiformats/go-multiaddr"
) )
......
...@@ -6,14 +6,14 @@ import ( ...@@ -6,14 +6,14 @@ import (
"sync" "sync"
"time" "time"
cid "github.com/ipfs/go-cid" cid "gitlab.dms3.io/dms3/public/go-cid"
ds "github.com/ipfs/go-datastore" ds "gitlab.dms3.io/dms3/public/go-datastore"
dssync "github.com/ipfs/go-datastore/sync" dssync "gitlab.dms3.io/dms3/public/go-datastore/sync"
"github.com/libp2p/go-libp2p-core/peer" "gitlab.dms3.io/p2p/go-p2p-core/peer"
"github.com/libp2p/go-libp2p-testing/net" 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 // server is the mockrouting.Client's private interface to the routing server
......
...@@ -5,12 +5,12 @@ import ( ...@@ -5,12 +5,12 @@ import (
"testing" "testing"
"time" "time"
cid "github.com/ipfs/go-cid" cid "gitlab.dms3.io/dms3/public/go-cid"
delay "github.com/ipfs/go-ipfs-delay" delay "gitlab.dms3.io/dms3/public/go-dms3-delay"
u "github.com/ipfs/go-ipfs-util" u "gitlab.dms3.io/dms3/public/go-dms3-util"
"github.com/libp2p/go-libp2p-core/peer" "gitlab.dms3.io/p2p/go-p2p-core/peer"
"github.com/libp2p/go-libp2p-testing/net" tnet "gitlab.dms3.io/p2p/go-p2p-testing/net"
) )
func TestKeyNotFound(t *testing.T) { func TestKeyNotFound(t *testing.T) {
......
...@@ -7,12 +7,12 @@ package mockrouting ...@@ -7,12 +7,12 @@ package mockrouting
import ( import (
"context" "context"
ds "github.com/ipfs/go-datastore" ds "gitlab.dms3.io/dms3/public/go-datastore"
delay "github.com/ipfs/go-ipfs-delay" delay "gitlab.dms3.io/dms3/public/go-dms3-delay"
"github.com/libp2p/go-libp2p-core/peer" "gitlab.dms3.io/p2p/go-p2p-core/peer"
"github.com/libp2p/go-libp2p-core/routing" "gitlab.dms3.io/p2p/go-p2p-core/routing"
"github.com/libp2p/go-libp2p-testing/net" tnet "gitlab.dms3.io/p2p/go-p2p-testing/net"
) )
// MockValidator is a record validator that always returns success. // MockValidator is a record validator that always returns success.
......
...@@ -5,14 +5,14 @@ import ( ...@@ -5,14 +5,14 @@ import (
"context" "context"
"errors" "errors"
cid "github.com/ipfs/go-cid" cid "gitlab.dms3.io/dms3/public/go-cid"
ds "github.com/ipfs/go-datastore" ds "gitlab.dms3.io/dms3/public/go-datastore"
"github.com/libp2p/go-libp2p-core/host" "gitlab.dms3.io/p2p/go-p2p-core/host"
"github.com/libp2p/go-libp2p-core/peer" "gitlab.dms3.io/p2p/go-p2p-core/peer"
"github.com/libp2p/go-libp2p-core/routing" "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 { type nilclient struct {
......
...@@ -9,15 +9,15 @@ import ( ...@@ -9,15 +9,15 @@ import (
"time" "time"
proto "github.com/gogo/protobuf/proto" proto "github.com/gogo/protobuf/proto"
cid "github.com/ipfs/go-cid" cid "gitlab.dms3.io/dms3/public/go-cid"
ds "github.com/ipfs/go-datastore" ds "gitlab.dms3.io/dms3/public/go-datastore"
dshelp "github.com/ipfs/go-ipfs-ds-help" dshelp "gitlab.dms3.io/dms3/public/go-dms3-ds-help"
"github.com/libp2p/go-libp2p-core/peer" "gitlab.dms3.io/p2p/go-p2p-core/peer"
"github.com/libp2p/go-libp2p-core/routing" "gitlab.dms3.io/p2p/go-p2p-core/routing"
record "github.com/libp2p/go-libp2p-record" record "gitlab.dms3.io/p2p/go-p2p-record"
pb "github.com/libp2p/go-libp2p-record/pb" pb "gitlab.dms3.io/p2p/go-p2p-record/pb"
) )
// ErrOffline is returned when trying to perform operations that // ErrOffline is returned when trying to perform operations that
......
...@@ -5,11 +5,11 @@ import ( ...@@ -5,11 +5,11 @@ import (
"context" "context"
"testing" "testing"
cid "github.com/ipfs/go-cid" cid "gitlab.dms3.io/dms3/public/go-cid"
ds "github.com/ipfs/go-datastore" ds "gitlab.dms3.io/dms3/public/go-datastore"
"github.com/libp2p/go-libp2p-core/routing" "gitlab.dms3.io/p2p/go-p2p-core/routing"
"github.com/libp2p/go-libp2p-core/test" "gitlab.dms3.io/p2p/go-p2p-core/test"
mh "github.com/multiformats/go-multihash" 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