Updated .travis.yml

This commit is contained in:
MichaelOultram 2015-08-03 22:00:37 +01:00
parent 62ec49eee7
commit 7bb415a5df
2 changed files with 24 additions and 15 deletions

View file

@ -1,19 +1,18 @@
language: go language: go
install: cache:
directories:
- $HOME/opus
before_script:
- export PATH=$PATH:~/bin/ - export PATH=$PATH:~/bin/
- wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz - wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz -O /tmp/ffmpeg.tar.xz
- tar -xvf ffmpeg-release-64bit-static.tar.xz --strip 1 --no-anchored ffmpeg ffprobe - tar -xvf /tmp/ffmpeg.tar.xz --strip 1 --no-anchored ffmpeg ffprobe
- chmod a+rx ffmpeg - chmod a+rx ffmpeg ffprobe
- chmod a+rx ffprobe - mv ff* ~/bin
- mv ffmpeg ~/bin/ffmpeg
- mv ffprobe ~/bin/ffprobe
- wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz
- tar xzvf opus-1.0.3.tar.gz
- cd opus-1.0.3
- ./configure
- make
- make install
- cd ..
- curl https://yt-dl.org/downloads/2015.07.28/youtube-dl -o ~/bin/youtube-dl - curl https://yt-dl.org/downloads/2015.07.28/youtube-dl -o ~/bin/youtube-dl
- chmod a+rx ~/bin/youtube-dl - chmod a+rx ~/bin/youtube-dl
- bash install-opus.sh
install:
- ls -R $HOME/opus

10
install-opus.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/sh
set -e
# check to see if opus folder is empty
if [ ! -d "$HOME/opus/lib" ]; then
wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz
tar xzvf opus-1.0.3.tar.gz
cd opus-1.0.3 && ./configure --prefix=$HOME/opus && make && make install
else
echo 'Using cached directory.';
fi