Unverified Commit 2bf0e553 authored by Marten Seemann's avatar Marten Seemann Committed by GitHub

Merge pull request #1 from libp2p/run-travis

add gx, Travis and Codecov configuration
parents 81749456 73a28314
language: go
go:
- "1.10.x"
- "1.11.x"
# first part of the GOARCH workaround
# setting the GOARCH directly doesn't work, since the value will be overwritten later
# so set it to a temporary environment variable first
env:
- TRAVIS_GOARCH=amd64
- TRAVIS_GOARCH=386
# second part of the GOARCH workaround
# now actually set the GOARCH env variable to the value of the temporary variable set earlier
before_install:
- make deps
- export GOARCH=$TRAVIS_GOARCH
- go env # for debugging
script:
- ginkgo -r -v --cover --randomizeAllSpecs --randomizeSuites --trace --progress
after_success:
- cat go-libp2p-tls.coverprofile > coverage.txt
- cat */*.coverprofile >> coverage.txt
- bash <(curl -s https://codecov.io/bash) -f coverage.txt
cache:
directories:
- $GOPATH/src/gx
gx:
go get github.com/whyrusleeping/gx
go get github.com/whyrusleeping/gx-go
testutils:
go get golang.org/x/tools/cmd/cover
go get github.com/onsi/ginkgo/ginkgo
go get github.com/onsi/gomega
deps: gx testutils
gx --verbose install --global
gx-go rewrite
......@@ -5,6 +5,8 @@
[![](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
[![GoDoc](https://godoc.org/github.com/libp2p/go-libp2p-tls?status.svg)](https://godoc.org/github.com/libp2p/go-libp2p-tls)
[![Linux Build Status](https://img.shields.io/travis/libp2p/go-libp2p-tls/master.svg?style=flat-square&label=linux+build)](https://travis-ci.org/libp2p/go-libp2p-tls)
[![Code Coverage](https://img.shields.io/codecov/c/github/libp2p/go-libp2p-tls/master.svg?style=flat-square)](https://codecov.io/gh/libp2p/go-libp2p-tls/)
> go-libp2p's TLS encrypted transport
......
coverage:
round: nearest
status:
project:
default:
threshold: 1
patch: false
{
"author": "marten",
"bugs": {
"url": "github.com/libp2p/go-libp2p-tls"
},
"gx": {
"dvcsimport": "github.com/libp2p/go-libp2p-tls"
},
"gxDependencies": [
{
"author": "Stebalien",
"hash": "QmbyjEKtxXmZdiByBiNhfayzEuEPPBvuD2dLpHky8cHUvy",
"name": "go-conn-security",
"version": "0.1.20"
}
],
"gxVersion": "0.12.1",
"language": "go",
"license": "",
"name": "go-libp2p-tls",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "0.0.0"
}
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