Commit 499713d2 authored by tavit ohanian's avatar tavit ohanian

initial port

parent 841bfd14
Pipeline #536 failed with stages
in 1 minute and 31 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/'
......@@ -3,8 +3,8 @@ package sm_yamux
import (
"context"
"github.com/libp2p/go-libp2p-core/mux"
"github.com/libp2p/go-yamux/v2"
"gitlab.dms3.io/p2p/go-p2p-core/mux"
"gitlab.dms3.io/p2p/go-yamux/v2"
)
// conn implements mux.MuxedConn over yamux.Session.
......
......@@ -3,8 +3,8 @@ package sm_yamux
import (
"time"
"github.com/libp2p/go-libp2p-core/mux"
"github.com/libp2p/go-yamux/v2"
"gitlab.dms3.io/p2p/go-p2p-core/mux"
"gitlab.dms3.io/p2p/go-yamux/v2"
)
// stream implements mux.MuxedStream over yamux.Stream.
......
......@@ -4,8 +4,8 @@ import (
"io/ioutil"
"net"
mux "github.com/libp2p/go-libp2p-core/mux"
"github.com/libp2p/go-yamux/v2"
mux "gitlab.dms3.io/p2p/go-p2p-core/mux"
"gitlab.dms3.io/p2p/go-yamux/v2"
)
var DefaultTransport *Transport
......
......@@ -3,7 +3,7 @@ package sm_yamux
import (
"testing"
tmux "github.com/libp2p/go-libp2p-testing/suites/mux"
tmux "gitlab.dms3.io/p2p/go-p2p-testing/suites/mux"
)
func TestDefaultTransport(t *testing.T) {
......
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