-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
61 lines (52 loc) · 1.27 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: go
#sudo: required
go:
- 1.7
- 1.6
- 1.5
- 1.4
- tip
env:
global:
- DEPLOY_GIT_NAME=TravisCI
- DEPLOY_GIT_EMAIL=tavisci@noreply.corbatto.de
- DEPLOY_COMMIT_MSG='Automatically updated function searcher for COMMIT_SHA on branch BRANCH.'
matrix:
- ffmpeg=3.1.5
- ffmpeg=3.2
- ffmpeg=snapshot
matrix:
fast_finish: true
allow_failures:
- go: tip
- env: ffmpeg=snapshot
addons:
apt:
packages:
- yasm
- diffutils
# On develop branch
go_import_path: github.com/targodan/ffgopeg
# On master branch
#go_import_path: gopkg.in/targodan/ffgopeg.v1
before_install:
- pushd $HOME
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/lib
- export LIBRARY_PATH=$LIBRARY_PATH:$HOME/lib
- export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/lib/pkgconfig
- curl https://ffmpeg.org/releases/ffmpeg-${ffmpeg}.tar.bz2 -o ffmpeg.tar.bz2
- tar -vxf ffmpeg.tar.bz2
- mkdir -p ffmpeg
- mv ffmpeg-${ffmpeg}/* ffmpeg/ || true
- cd ffmpeg/
- ./configure --disable-programs --prefix=$HOME
- make -j8
- make install
- popd
install:
- go get -t -v ./...
script:
- go build -v
- go test -v -cover -race ./...
after_success:
- ./deploy.sh