Changed how things are cached on circleci
This commit is contained in:
parent
aaa4694980
commit
16ae6685c1
|
@ -14,9 +14,8 @@ dependencies:
|
||||||
cache_directories:
|
cache_directories:
|
||||||
- "~/opus"
|
- "~/opus"
|
||||||
- "~/bin"
|
- "~/bin"
|
||||||
- "$(GOPATH)/src/github.com/nitrous-io"
|
|
||||||
- "~/.vendor"
|
- "~/.vendor"
|
||||||
- "$(GOPATH)/bin/goop"
|
- "$(GOPATH)/src/github.com/nitrous-io"
|
||||||
test:
|
test:
|
||||||
override:
|
override:
|
||||||
- mumbledj -server=$MUMBLE_IP -port=$MUMBLE_PORT -username=circleci -password=$MUMBLE_PASSWORD -verbose=true -test=true:
|
- mumbledj -server=$MUMBLE_IP -port=$MUMBLE_PORT -username=circleci -password=$MUMBLE_PASSWORD -verbose=true -test=true:
|
||||||
|
|
|
@ -3,6 +3,7 @@ set -e
|
||||||
|
|
||||||
# check to see if ffmpeg is installed
|
# check to see if ffmpeg is installed
|
||||||
if [ ! -f "$HOME/bin/ffmpeg" ]; then
|
if [ ! -f "$HOME/bin/ffmpeg" ]; then
|
||||||
|
echo 'Installing ffmpeg'
|
||||||
wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz -O /tmp/ffmpeg.tar.xz
|
wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz -O /tmp/ffmpeg.tar.xz
|
||||||
tar -xvf /tmp/ffmpeg.tar.xz --strip 1 --no-anchored ffmpeg ffprobe
|
tar -xvf /tmp/ffmpeg.tar.xz --strip 1 --no-anchored ffmpeg ffprobe
|
||||||
chmod a+rx ffmpeg ffprobe
|
chmod a+rx ffmpeg ffprobe
|
||||||
|
@ -13,6 +14,7 @@ fi
|
||||||
|
|
||||||
# check to see if opus is installed
|
# check to see if opus is installed
|
||||||
if [ ! -d "$HOME/opus/lib" ]; then
|
if [ ! -d "$HOME/opus/lib" ]; then
|
||||||
|
echo 'Installing opus'
|
||||||
wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz
|
wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz
|
||||||
tar xzvf 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
|
cd opus-1.0.3 && ./configure --prefix=$HOME/opus && make && make install
|
||||||
|
@ -22,10 +24,18 @@ fi
|
||||||
|
|
||||||
# check to see if youtube-dl is installed
|
# check to see if youtube-dl is installed
|
||||||
if [ ! -f "$HOME/bin/youtube-dl" ]; then
|
if [ ! -f "$HOME/bin/youtube-dl" ]; then
|
||||||
|
echo 'Installing youtube-dl'
|
||||||
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
|
||||||
else
|
else
|
||||||
echo 'Using cached version of youtube-dl.';
|
echo 'Using cached version of youtube-dl.';
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ls -lR $HOME/opus
|
# check to see if goop is installed
|
||||||
|
if [ ! -f "$HOME/bin/goop" ]; then
|
||||||
|
echo 'Installing goop'
|
||||||
|
go get github.com/nitrous-io/goop
|
||||||
|
mv $GOPATH/bin/goop ~/goop
|
||||||
|
else
|
||||||
|
echo 'Using cached version of goop.';
|
||||||
|
fi
|
Reference in a new issue