mirror of
https://github.com/pion/webrtc.git
synced 2025-10-06 15:46:54 +08:00
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:
@@ -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
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
// +build quic
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
// +build quic
|
||||||
|
|
||||||
package webrtc
|
package webrtc
|
||||||
|
|
||||||
// QUICParameters holds information relating to QUIC configuration.
|
// QUICParameters holds information relating to QUIC configuration.
|
||||||
|
@@ -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.
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
// +build quic
|
||||||
|
|
||||||
package webrtc
|
package webrtc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
// +build !js
|
// +build !js
|
||||||
|
// +build quic
|
||||||
|
|
||||||
package webrtc
|
package webrtc
|
||||||
|
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
// +build !js
|
// +build !js
|
||||||
|
// +build quic
|
||||||
|
|
||||||
package webrtc
|
package webrtc
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user