Updated .travis.yml
This commit is contained in:
parent
62ec49eee7
commit
7bb415a5df
29
.travis.yml
29
.travis.yml
|
@ -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
10
install-opus.sh
Normal 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
|
Reference in a new issue