Skip to content

Commit

Permalink
Add .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Arimeka committed Apr 10, 2019
1 parent a87768b commit 3ca67fb
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
language: go

dist: xenial
sudo: required

go:
- 1.10.x
- 1.11.x
- 1.x

addons:
apt:
packages:
- libmagic-dev

before_install:
- sudo add-apt-repository ppa:jonathonf/ffmpeg-4 -y
- sudo apt-get update -q
- sudo apt-get install libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavresample-dev libavutil-dev libpostproc-dev libswresample-dev libswscale-dev -y
- pkg-config --libs libavformat

install:
- go get -u golang.org/x/lint/golint
- go get github.com/3d0c/gmf
- go get github.com/rakyll/magicmime
- go get github.com/rwcarlsen/goexif/exif
- go get golang.org/x/image/bmp
- go get golang.org/x/image/tiff
- go get golang.org/x/image/webp

script:
- diff -u <(echo -n) <(go vet ./)
- diff -u <(echo -n) <(golint ./)
- go test -v -race -covermode=atomic -coverprofile=coverage.out
15 changes: 15 additions & 0 deletions install-ffmpeg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

if ! [[ -d $HOME/ffmpeg ]]; then mkdir $HOME/ffmpeg; fi
cd $HOME/ffmpeg
git clone https://github.com/FFmpeg/FFmpeg.git .
git checkout n4.1.3
./configure \
--prefix=/usr/local/ffmpeg \
--enable-shared \
--disable-x86asm \
--pkg-config-flags="--static" \
--extra-cflags="-I/usr/local/ffmpeg/include" \
--extra-ldflags="-L/usr/local/ffmpeg/lib"
make
sudo make install

0 comments on commit 3ca67fb

Please sign in to comment.