7b96f4c3ce
By default, the date on a file downloaded by youtube-dl is the date the video was originally uploaded to youtube. As a result, items will always be cleared from the cache because they appear to be years old - even though they were just downloaded. Adding the directive "--no-mtime" will make the date on files the date the file was downloaded. See this issue on youtube-dl: https://github.com/rg3/youtube-dl/issues/4667
31 lines
924 B
YAML
31 lines
924 B
YAML
language: go
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/opus
|
|
- $HOME/bin
|
|
- $HOME/gopath/bin
|
|
- $HOME/gopath/pkg
|
|
- $HOME/gopath/src/github.com/nitrous-io
|
|
- $HOME/gopath/src/github.com/MichaelOultram/mumbledj/.vendor
|
|
|
|
before_script:
|
|
- export PATH=$PATH:$HOME/bin/
|
|
- export LD_RUN_PATH=$LD_RUN_PATH:$HOME/opus/lib
|
|
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/opus/lib
|
|
- export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/opus/lib/pkgconfig
|
|
- bash install-dependencies.sh
|
|
|
|
script:
|
|
- make
|
|
- make install
|
|
|
|
env:
|
|
- PATH=$PATH:~/bin/
|
|
- PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/opus/lib/pkgconfig
|
|
|
|
after_success:
|
|
- ffmpeg -version
|
|
- youtube-dl --output ~/.mumbledj/songs/QcIy9NiNbmo.m4a --format m4a --prefer-ffmpeg -4 --verbose http://www.youtube.com/watch?v=QcIy9NiNbmo
|
|
- mumbledj -server=$MUMBLE_IP -port=$MUMBLE_PORT -username=travis -password=$MUMBLE_PASSWORD -verbose=true -test=true
|