Commit a54dd97b authored by tavit ohanian's avatar tavit ohanian

initial port

parent fe76ad85
Pipeline #772 passed with stages
in 1 minute and 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/'
...@@ -5,14 +5,14 @@ import ( ...@@ -5,14 +5,14 @@ import (
"errors" "errors"
"time" "time"
"github.com/libp2p/go-libp2p-core/host" "gitlab.dms3.io/p2p/go-p2p-core/host"
"github.com/libp2p/go-libp2p-core/network" "gitlab.dms3.io/p2p/go-p2p-core/network"
"github.com/libp2p/go-libp2p-core/peer" "gitlab.dms3.io/p2p/go-p2p-core/peer"
"github.com/libp2p/go-libp2p-core/protocol" "gitlab.dms3.io/p2p/go-p2p-core/protocol"
"github.com/libp2p/go-msgio/protoio" "gitlab.dms3.io/p2p/go-msgio/protoio"
pb "github.com/libp2p/go-libp2p-pubsub-router/pb" pb "gitlab.dms3.io/p2p/go-p2p-pubsub-router/pb"
"github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/proto"
) )
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/libp2p/go-libp2p-core/host" "gitlab.dms3.io/p2p/go-p2p-core/host"
) )
func connect(t *testing.T, a, b host.Host) { func connect(t *testing.T, a, b host.Host) {
......
This diff is collapsed.
...@@ -9,17 +9,17 @@ import ( ...@@ -9,17 +9,17 @@ import (
"sync" "sync"
"time" "time"
"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"
pubsub "github.com/libp2p/go-libp2p-pubsub" pubsub "gitlab.dms3.io/p2p/go-p2p-pubsub"
record "github.com/libp2p/go-libp2p-record" record "gitlab.dms3.io/p2p/go-p2p-record"
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"
dshelp "github.com/ipfs/go-ipfs-ds-help" dshelp "gitlab.dms3.io/dms3/public/go-dms3-ds-help"
logging "github.com/ipfs/go-log/v2" logging "gitlab.dms3.io/dms3/public/go-log/v2"
) )
var log = logging.Logger("pubsub-valuestore") var log = logging.Logger("pubsub-valuestore")
......
...@@ -9,13 +9,13 @@ import ( ...@@ -9,13 +9,13 @@ import (
"golang.org/x/sync/errgroup" "golang.org/x/sync/errgroup"
"github.com/libp2p/go-libp2p-core/host" "gitlab.dms3.io/p2p/go-p2p-core/host"
"github.com/libp2p/go-libp2p-core/routing" "gitlab.dms3.io/p2p/go-p2p-core/routing"
bhost "github.com/libp2p/go-libp2p-blankhost" bhost "gitlab.dms3.io/p2p/go-p2p-blankhost"
pubsub "github.com/libp2p/go-libp2p-pubsub" pubsub "gitlab.dms3.io/p2p/go-p2p-pubsub"
record "github.com/libp2p/go-libp2p-record" record "gitlab.dms3.io/p2p/go-p2p-record"
swarmt "github.com/libp2p/go-libp2p-swarm/testing" swarmt "gitlab.dms3.io/p2p/go-p2p-swarm/testing"
) )
func newNetHost(ctx context.Context, t *testing.T) host.Host { func newNetHost(ctx context.Context, t *testing.T) host.Host {
......
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