Disable quic by default; enable with build tag

Taking a more extreme approach than #588... This patch
disables quic by default. The advantage here would be
that webrtc builds with older versions of go than
quic-go supports (currently 1.12+).
This commit is contained in:
Michael MacDonald
2019-04-05 14:43:32 -04:00
parent b49d45d243
commit 64eecd6d39
7 changed files with 13 additions and 3 deletions

View File

@@ -32,11 +32,11 @@ before_script:
- go get github.com/mattn/goveralls - go get github.com/mattn/goveralls
script: script:
- golangci-lint run ./... - golangci-lint run --build-tags quic ./...
- cd examples && golangci-lint run ./... -D gochecknoinits - cd examples && golangci-lint run --build-tags quic ./... -D gochecknoinits
- cd .. - cd ..
- rm -rf examples # Remove examples, no test coverage for them - rm -rf examples # Remove examples, no test coverage for them
- go test -coverpkg=$(go list ./... | tr '\n' ',') -coverprofile=cover.out -v -race -covermode=atomic ./... - go test -tags quic -coverpkg=$(go list ./... | tr '\n' ',') -coverprofile=cover.out -v -race -covermode=atomic ./...
- GOOS=js GOARCH=wasm go test -exec="./test-wasm/go_js_wasm_exec" -v . - GOOS=js GOARCH=wasm go test -exec="./test-wasm/go_js_wasm_exec" -v .
- goveralls -coverprofile=cover.out -service=travis-ci - goveralls -coverprofile=cover.out -service=travis-ci
- bash .github/assert-contributors.sh - bash .github/assert-contributors.sh

View File

@@ -1,3 +1,5 @@
// +build quic
package main package main
import ( import (

View File

@@ -1,3 +1,5 @@
// +build quic
package webrtc package webrtc
// QUICParameters holds information relating to QUIC configuration. // QUICParameters holds information relating to QUIC configuration.

View File

@@ -1,3 +1,5 @@
// +build quic
package webrtc package webrtc
// QUICRole indicates the role of the Quic transport. // QUICRole indicates the role of the Quic transport.

View File

@@ -1,3 +1,5 @@
// +build quic
package webrtc package webrtc
import ( import (

View File

@@ -1,4 +1,5 @@
// +build !js // +build !js
// +build quic
package webrtc package webrtc

View File

@@ -1,4 +1,5 @@
// +build !js // +build !js
// +build quic
package webrtc package webrtc