forked from pion/example-webrtc-applications
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (26 loc) · 1.05 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
language: go
branches:
only:
- master
go:
- "1.x" # use the latest Go release
env:
- GO111MODULE=on
cache:
directories:
- $HOME/.cache/go-build
- $GOPATH/pkg/mod
before_install:
- sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.18.0
- sh -c "cd c-data-channels && make"
install:
# Exclude c-data-channels since it uses cgo, it can't be easily installed with go get
- go get -v -t `go list ./... | grep -v c-data-channels`
script:
# Since golangci-lint simply passes the paths to go list and go list doesn't know how to exclude packages,
# this seems to be the workaround according to https://github.com/golangci/golangci-lint/issues/301#issuecomment-441311986
- go list -f '{{.Dir}}' ./... | fgrep -v c-data-channels | xargs realpath --relative-to=. | xargs golangci-lint run -v
- bash .github/assert-contributors.sh
- bash .github/lint-commit-message.sh
- bash .github/lint-filename.sh