Unverified Commit 5547f204 authored by moto's avatar moto Committed by GitHub
Browse files

Update unit test base Docker image (#1193)

* Do not install sox system-wide, so that it will never get mixed up with static one torchaudio builds
* Do not install cmake system-wide
* Move libsndfile installation to Docker image
parent 7d503816
......@@ -388,7 +388,7 @@ jobs:
unittest_linux_cpu:
<<: *binary_common
docker:
- image: "pytorch/torchaudio_unittest_base:manylinux"
- image: pytorch/torchaudio_unittest_base:manylinux-20210121
resource_class: 2xlarge+
steps:
- checkout
......@@ -417,7 +417,7 @@ jobs:
resource_class: gpu.small
environment:
<<: *environment
image_name: pytorch/torchaudio_unittest_base:manylinux-cuda10.1-cudnn7-20201203
image_name: pytorch/torchaudio_unittest_base:manylinux-cuda10.1-cudnn7-20210121
steps:
- checkout
- attach_workspace:
......
......@@ -388,7 +388,7 @@ jobs:
unittest_linux_cpu:
<<: *binary_common
docker:
- image: "pytorch/torchaudio_unittest_base:manylinux"
- image: pytorch/torchaudio_unittest_base:manylinux-20210121
resource_class: 2xlarge+
steps:
- checkout
......@@ -417,7 +417,7 @@ jobs:
resource_class: gpu.small
environment:
<<: *environment
image_name: pytorch/torchaudio_unittest_base:manylinux-cuda10.1-cudnn7-20201203
image_name: pytorch/torchaudio_unittest_base:manylinux-cuda10.1-cudnn7-20210121
steps:
- checkout
- attach_workspace:
......
......@@ -45,14 +45,11 @@ RUN apt update && apt install -y \
gfortran \
git \
libatlas3-base \
libsndfile1 \
wget \
curl \
make \
file \
sox \
libsox-dev \
libsox-fmt-all \
cmake \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /kaldi /kaldi
......
......@@ -43,8 +43,6 @@ BUILD_TRANSDUCER=1 BUILD_SOX=1 python setup.py install
# 3. Install Test tools
printf "* Installing test tools\n"
if [ "${os}" == Linux ] ; then
# TODO: move this to docker
apt install -y -q libsndfile1
conda install -y -c conda-forge codecov pytest pytest-cov
pip install kaldi-io 'librosa>=0.8.0' parameterized SoundFile scipy 'requests>=2.20'
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment