"git@developer.sourcefind.cn:OpenDAS/ktransformers.git" did not exist on "8c51f520ddb4c56c54595630f05870b4bc9d50df"
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: ...@@ -388,7 +388,7 @@ jobs:
unittest_linux_cpu: unittest_linux_cpu:
<<: *binary_common <<: *binary_common
docker: docker:
- image: "pytorch/torchaudio_unittest_base:manylinux" - image: pytorch/torchaudio_unittest_base:manylinux-20210121
resource_class: 2xlarge+ resource_class: 2xlarge+
steps: steps:
- checkout - checkout
...@@ -417,7 +417,7 @@ jobs: ...@@ -417,7 +417,7 @@ jobs:
resource_class: gpu.small resource_class: gpu.small
environment: environment:
<<: *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: steps:
- checkout - checkout
- attach_workspace: - attach_workspace:
......
...@@ -388,7 +388,7 @@ jobs: ...@@ -388,7 +388,7 @@ jobs:
unittest_linux_cpu: unittest_linux_cpu:
<<: *binary_common <<: *binary_common
docker: docker:
- image: "pytorch/torchaudio_unittest_base:manylinux" - image: pytorch/torchaudio_unittest_base:manylinux-20210121
resource_class: 2xlarge+ resource_class: 2xlarge+
steps: steps:
- checkout - checkout
...@@ -417,7 +417,7 @@ jobs: ...@@ -417,7 +417,7 @@ jobs:
resource_class: gpu.small resource_class: gpu.small
environment: environment:
<<: *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: steps:
- checkout - checkout
- attach_workspace: - attach_workspace:
......
...@@ -45,14 +45,11 @@ RUN apt update && apt install -y \ ...@@ -45,14 +45,11 @@ RUN apt update && apt install -y \
gfortran \ gfortran \
git \ git \
libatlas3-base \ libatlas3-base \
libsndfile1 \
wget \ wget \
curl \ curl \
make \ make \
file \ file \
sox \
libsox-dev \
libsox-fmt-all \
cmake \
pkg-config \ pkg-config \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY --from=builder /kaldi /kaldi COPY --from=builder /kaldi /kaldi
......
...@@ -43,8 +43,6 @@ BUILD_TRANSDUCER=1 BUILD_SOX=1 python setup.py install ...@@ -43,8 +43,6 @@ BUILD_TRANSDUCER=1 BUILD_SOX=1 python setup.py install
# 3. Install Test tools # 3. Install Test tools
printf "* Installing test tools\n" printf "* Installing test tools\n"
if [ "${os}" == Linux ] ; then if [ "${os}" == Linux ] ; then
# TODO: move this to docker
apt install -y -q libsndfile1
conda install -y -c conda-forge codecov pytest pytest-cov conda install -y -c conda-forge codecov pytest pytest-cov
pip install kaldi-io 'librosa>=0.8.0' parameterized SoundFile scipy 'requests>=2.20' pip install kaldi-io 'librosa>=0.8.0' parameterized SoundFile scipy 'requests>=2.20'
else 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