forked from imkira/go-libav
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
35 lines (30 loc) · 935 Bytes
/
.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
language: go
go:
- 1.5
- 1.6
- 1.7
- 1.8
- tip
env:
- FFMPEG_VER=ffmpeg30
- FFMPEG_VER=ffmpeg33
before_install:
- echo $TRAVIS_GO_VERSION
- go get -u golang.org/x/tools/cmd/cover
- "[[ $TRAVIS_GO_VERSION != 1.8* ]] || go get -u github.com/golang/lint/golint"
- go get -u github.com/shirou/gopsutil
- go get -u golang.org/x/sys/unix
- sudo apt-get update
- sudo apt-get install -y build-essential yasm libfaac-dev libmp3lame-dev libtheora-dev libvorbis-dev libvpx-dev libx264-dev libxvidcore-dev
script:
- "go get -d -t ./... || (cd $GOPATH/src/github.com/shirou/gopsutil && git checkout v2.17.04)"
- make fixtures
- make $FFMPEG_VER
- go test -v ./... -tags $FFMPEG_VER
- make gofmt
- "[[ $TRAVIS_GO_VERSION != 1.8* ]] || make golint"
- make govet
- FFMPEG_TAG=$FFMPEG_VER make cover-test
- FFMPEG_TAG=$FFMPEG_VER make cover
after_success:
- bash <(curl -s https://codecov.io/bash)