diff --git a/.github/assert-contributors.sh b/.github/assert-contributors.sh index 470d817..b0be2f7 100755 --- a/.github/assert-contributors.sh +++ b/.github/assert-contributors.sh @@ -1,10 +1,13 @@ #!/usr/bin/env bash # -# DO NOT EDIT THIS FILE DIRECTLY +# DO NOT EDIT THIS FILE # # It is automatically copied from https://github.com/pion/.goassets repository. # +# If you want to update the shared CI config, send a PR to +# https://github.com/pion/.goassets instead of this repository. +# set -e @@ -21,7 +24,15 @@ then . ${SCRIPT_PATH}/.ci.conf fi +# +# DO NOT EDIT THIS +# EXCLUDED_CONTRIBUTORS+=('John R. Bradley' 'renovate[bot]' 'Renovate Bot' 'Pion Bot') +# If you want to exclude a name from all repositories, send a PR to +# https://github.com/pion/.goassets instead of this repository. +# If you want to exclude a name only from this repository, +# add EXCLUDED_CONTRIBUTORS=('name') to .github/.ci.conf + MISSING_CONTRIBUTORS=() shouldBeIncluded () { diff --git a/.github/install-hooks.sh b/.github/install-hooks.sh index 289bdbb..73d20a4 100755 --- a/.github/install-hooks.sh +++ b/.github/install-hooks.sh @@ -1,10 +1,13 @@ #!/bin/bash # -# DO NOT EDIT THIS FILE DIRECTLY +# DO NOT EDIT THIS FILE # # It is automatically copied from https://github.com/pion/.goassets repository. # +# If you want to update the shared CI config, send a PR to +# https://github.com/pion/.goassets instead of this repository. +# SCRIPT_PATH=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) diff --git a/.github/lint-commit-message.sh b/.github/lint-commit-message.sh index 1d1e808..7357c94 100755 --- a/.github/lint-commit-message.sh +++ b/.github/lint-commit-message.sh @@ -1,10 +1,13 @@ #!/usr/bin/env bash # -# DO NOT EDIT THIS FILE DIRECTLY +# DO NOT EDIT THIS FILE # # It is automatically copied from https://github.com/pion/.goassets repository. # +# If you want to update the shared CI config, send a PR to +# https://github.com/pion/.goassets instead of this repository. +# set -e diff --git a/.github/lint-disallowed-functions-in-library.sh b/.github/lint-disallowed-functions-in-library.sh index 6d5d55a..21e48da 100755 --- a/.github/lint-disallowed-functions-in-library.sh +++ b/.github/lint-disallowed-functions-in-library.sh @@ -1,10 +1,13 @@ #!/usr/bin/env bash # -# DO NOT EDIT THIS FILE DIRECTLY +# DO NOT EDIT THIS FILE # # It is automatically copied from https://github.com/pion/.goassets repository. # +# If you want to update the shared CI config, send a PR to +# https://github.com/pion/.goassets instead of this repository. +# set -e diff --git a/.github/lint-filename.sh b/.github/lint-filename.sh index 61134af..81b3f14 100755 --- a/.github/lint-filename.sh +++ b/.github/lint-filename.sh @@ -1,10 +1,13 @@ #!/usr/bin/env bash # -# DO NOT EDIT THIS FILE DIRECTLY +# DO NOT EDIT THIS FILE # # It is automatically copied from https://github.com/pion/.goassets repository. # +# If you want to update the shared CI config, send a PR to +# https://github.com/pion/.goassets instead of this repository. +# set -e diff --git a/.github/workflows/renovate-go-mod-fix.yaml b/.github/workflows/renovate-go-mod-fix.yaml index 96cef4c..451fd7d 100644 --- a/.github/workflows/renovate-go-mod-fix.yaml +++ b/.github/workflows/renovate-go-mod-fix.yaml @@ -1,10 +1,13 @@ # -# DO NOT EDIT THIS FILE DIRECTLY +# DO NOT EDIT THIS FILE # # It is automatically copied from https://github.com/pion/.goassets repository. # If this repository should have package specific CI config, # remove the repository name from .goassets/.github/workflows/assets-sync.yml. # +# If you want to update the shared CI config, send a PR to +# https://github.com/pion/.goassets instead of this repository. +# name: go-mod-fix on: diff --git a/.travis.yml b/.travis.yml index e464e84..9bd21a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,13 @@ # -# DO NOT EDIT THIS FILE DIRECTLY +# DO NOT EDIT THIS FILE # # It is automatically copied from https://github.com/pion/.goassets repository. # If this repository should have package specific CI config, # remove the repository name from .goassets/.github/workflows/assets-sync.yml. # +# If you want to update the shared CI config, send a PR to +# https://github.com/pion/.goassets instead of this repository. +# dist: bionic language: go @@ -40,7 +43,7 @@ _lint_job: &lint_job - bash .github/lint-disallowed-functions-in-library.sh - bash .github/lint-commit-message.sh - bash .github/lint-filename.sh - - golangci-lint run ./... + - golangci-lint run ${GOLANGCI_LINT_EXRA_ARGS:-} ./... _test_job: &test_job env: CACHE_NAME=test before_install: @@ -49,6 +52,8 @@ _test_job: &test_job install: - go build ./... script: + # If you want to specify repository specific test packages rule, + # add `TEST_PACKAGES=$(command to list test target packages)` to .github/.ci.conf - testpkgs=${TEST_PACKAGES:-$(go list ./... | grep -v examples)} - coverpkgs=$(echo "${testpkgs}" | paste -s -d ',') - | @@ -119,11 +124,13 @@ jobs: - <<: *test_i386_job name: Test i386 1.13 env: GO_VERSION=1.13 - go: 1.14 # version for host environment used to go list + go: 1.14 # Go version for host environment only for `go list`. + # All tests are done on the version specified by GO_VERSION. - <<: *test_i386_job name: Test i386 1.14 env: GO_VERSION=1.14 - go: 1.14 # version for host environment used to go list + go: 1.14 # Go version for host environment only for `go list`. + # All tests are done on the version specified by GO_VERSION. - <<: *test_wasm_job name: Test WASM 1.13 env: GO_VERSION=1.13 diff --git a/codecov.yml b/codecov.yml index 5941e99..085200a 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,5 +1,5 @@ # -# DO NOT EDIT THIS FILE DIRECTLY +# DO NOT EDIT THIS FILE # # It is automatically copied from https://github.com/pion/.goassets repository. #