mirror of https://github.com/rhasspy/piper
Move test into main Docker build
parent
99f0936789
commit
8b3dfc20dd
@ -0,0 +1,5 @@
|
||||
*
|
||||
!Makefile
|
||||
!src/cpp/
|
||||
!local/en-us/lessac/low/en-us-lessac-low.onnx
|
||||
!local/en-us/lessac/low/en-us-lessac-low.onnx.json
|
@ -1,3 +0,0 @@
|
||||
*
|
||||
!Makefile
|
||||
!src/cpp/
|
@ -1,13 +0,0 @@
|
||||
FROM debian:buster
|
||||
ARG TARGETARCH
|
||||
ARG TARGETVARIANT
|
||||
|
||||
COPY local/en-us/ljspeech/low/en-us-ljspeech-low.onnx \
|
||||
local/en-us/ljspeech/low/en-us-ljspeech-low.onnx.json ./
|
||||
|
||||
ADD dist/linux_${TARGETARCH}${TARGETVARIANT}/piper_${TARGETARCH}${TARGETVARIANT}.tar.gz ./
|
||||
|
||||
RUN cd piper/ && echo 'This is a test.' | ./piper -m ../en-us-ljspeech-low.onnx -f test.wav
|
||||
RUN if [ ! -f piper/test.wav ]; then exit 1; fi
|
||||
RUN size="$(wc -c < piper/test.wav)"; \
|
||||
if [ "${size}" -lt "1000" ]; then echo "File size is ${size} bytes"; exit 1; fi
|
@ -1,3 +0,0 @@
|
||||
*
|
||||
!dist/
|
||||
!local/en-us/ljspeech/low/
|
Loading…
Reference in New Issue