Commit de1416ae authored by tavit ohanian's avatar tavit ohanian

initial port

parent 21537b88
Pipeline #460 failed with stages
in 2 minutes and 18 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/'
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"sync" "sync"
"sync/atomic" "sync/atomic"
"github.com/libp2p/go-libp2p-core/event" "gitlab.dms3.io/p2p/go-p2p-core/event"
) )
/////////////////////// ///////////////////////
......
...@@ -9,8 +9,8 @@ import ( ...@@ -9,8 +9,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/libp2p/go-libp2p-core/event" "gitlab.dms3.io/p2p/go-p2p-core/event"
"github.com/libp2p/go-libp2p-testing/race" "gitlab.dms3.io/p2p/go-p2p-testing/race"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )
......
This diff is collapsed.
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