-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
41 lines (35 loc) · 1.09 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
34
35
36
37
38
39
40
41
language: go
sudo: false
go:
- 1.14.x
- 1.13.x
- master
env:
- SRT_VERSION=v1.4.1
matrix:
allow_failures:
- go: master
before_install:
- wget -O srt.tar.gz "https://github.com/Haivision/srt/archive/$SRT_VERSION.tar.gz"
- sudo tar -xzf srt.tar.gz --strip-components=1
- rm srt.tar.gz
- sudo apt-get update
- sudo apt-get install tclsh pkg-config cmake libssl-dev build-essential
- ./configure
- make
- sudo make install
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
install:
- go get golang.org/x/tools/cmd/cover
- go get github.com/modocache/gover
- go get github.com/mattn/goveralls
- go get honnef.co/go/tools/cmd/staticcheck
- go get -v -t ./...
script:
- go vet $(go list ./... | grep -v /vendor/)
- staticcheck $(go list ./... | grep -v /vendor/)
- CGO_ENABLED=1 GOOS=`go env GOHOSTOS` GOARCH=`go env GOHOSTARCH` go build -o bin/livetransmit github.com/openfresh/gosrt/examples/livetransmit
- go test -short -v $(go list ./... | grep -v /vendor/)
after_script:
- gover
- goveralls -coverprofile=gover.coverprofile -repotoken $COVERALLS_TOKEN