mirror of
https://github.com/pstrueb/piper.git
synced 2026-06-01 09:27:02 +00:00
No test in Docker
This commit is contained in:
+15
-14
@@ -54,25 +54,26 @@ RUN mkdir -p piper && \
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
FROM debian:bullseye as test
|
||||
ARG TARGETARCH
|
||||
ARG TARGETVARIANT
|
||||
# FROM debian:bullseye as test
|
||||
# ARG TARGETARCH
|
||||
# ARG TARGETVARIANT
|
||||
|
||||
WORKDIR /test
|
||||
# WORKDIR /test
|
||||
|
||||
COPY local/en-us/lessac/low/en-us-lessac-low.onnx \
|
||||
local/en-us/lessac/low/en-us-lessac-low.onnx.json ./
|
||||
# COPY local/en-us/lessac/low/en-us-lessac-low.onnx \
|
||||
# local/en-us/lessac/low/en-us-lessac-low.onnx.json ./
|
||||
|
||||
# Run Piper on a test sentence and verify that the WAV file isn't empty
|
||||
COPY --from=build /dist/piper_*.tar.gz ./
|
||||
RUN tar -xzf piper*.tar.gz
|
||||
RUN echo 'This is a test.' | ./piper/piper -m en-us-lessac-low.onnx -f test.wav
|
||||
RUN if [ ! -f test.wav ]; then exit 1; fi
|
||||
RUN size="$(wc -c < test.wav)"; \
|
||||
if [ "${size}" -lt "1000" ]; then echo "File size is ${size} bytes"; exit 1; fi
|
||||
# # Run Piper on a test sentence and verify that the WAV file isn't empty
|
||||
# COPY --from=build /dist/piper_*.tar.gz ./
|
||||
# RUN tar -xzf piper*.tar.gz
|
||||
# RUN echo 'This is a test.' | ./piper/piper -m en-us-lessac-low.onnx -f test.wav
|
||||
# RUN if [ ! -f test.wav ]; then exit 1; fi
|
||||
# RUN size="$(wc -c < test.wav)"; \
|
||||
# if [ "${size}" -lt "1000" ]; then echo "File size is ${size} bytes"; exit 1; fi
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=test /test/piper_*.tar.gz /test/test.wav ./
|
||||
# COPY --from=test /test/piper_*.tar.gz /test/test.wav ./
|
||||
COPY --from=build /dist/piper_*.tar.gz ./
|
||||
|
||||
Reference in New Issue
Block a user