1
0

Let's actually add a test config and a testing run target in makefile.

This commit is contained in:
Alexander Andreev 2023-03-13 02:14:52 +04:00
parent dd1469c957
commit 7f5a3bdb7f
Signed by: Arav
GPG Key ID: D22A817D95815393
2 changed files with 18 additions and 0 deletions

View File

@ -17,6 +17,9 @@ ${TARGET}:
install-jade:
go install github.com/Joker/jade/cmd/jade@latest
run:
bin/dwelling-radio -no-liquidsoap -conf configs/config.test.yaml
install:
install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET}
install -Dm 0755 tools/radioctl ${DESTDIR}usr/bin/${TARGET}ctl

15
configs/config.test.yaml Normal file
View File

@ -0,0 +1,15 @@
# Sets network type (could be tcp{,4,6}, unix)
# and address:port or /path/to/unix.sock to
# listen on.
listen_on: "tcp 127.0.0.1:16387"
icecast:
# URL to Icecast's status-json.xsl
url: "http://radio.arav.home.arpa/status-json.xsl"
playlist_path: "playlist.log"
filelist_path: "/srv/radio/filelist.html"
most_listened_song_file_path: "/mnt/data/appdata/mostlistenedsong"
liquidsoap:
executable_path: "/opt/opam/4.14.0/bin/liquidsoap"
script_path: "/etc/dwelling/radio.liq"
# How much songs to list on a page
list_last_n_songs: 10