Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
d346cacb
Unverified
Commit
d346cacb
authored
Jul 22, 2020
by
moto
Committed by
GitHub
Jul 22, 2020
Browse files
Remove unused files from CCI (#809)
parent
00cc000e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
83 deletions
+0
-83
.circleci/test/test_sort_yaml.py
.circleci/test/test_sort_yaml.py
+0
-14
.circleci/unittest/linux/docker/Dockerfile
.circleci/unittest/linux/docker/Dockerfile
+0
-7
.circleci/unittest/linux/docker/scripts/build_third_parties.sh
...leci/unittest/linux/docker/scripts/build_third_parties.sh
+0
-62
No files found.
.circleci/test/test_sort_yaml.py
deleted
100755 → 0
View file @
00cc000e
#!/usr/bin/env python3
"""
To compare new version with previous:
./regenerate.sh
meld <(git show HEAD:./config.yml | ./sort-yaml.py) <(cat config.yml | ./sort-yaml.py)
"""
import
sys
import
yaml
sys
.
stdout
.
write
(
yaml
.
dump
(
yaml
.
load
(
sys
.
stdin
,
Loader
=
yaml
.
FullLoader
),
sort_keys
=
True
))
.circleci/unittest/linux/docker/Dockerfile
View file @
d346cacb
...
...
@@ -36,12 +36,6 @@ RUN git clone --depth 1 https://github.com/kaldi-asr/kaldi.git /opt/kaldi && \
ADD
./scripts /scripts
RUN
bash /scripts/copy_kaldi_executables.sh /opt/kaldi /kaldi
################################################################################
# Build third party dependencies
################################################################################
RUN
apt
install
-q
-y
curl
RUN
bash /scripts/build_third_parties.sh /
################################################################################
# Build the final image
################################################################################
...
...
@@ -62,5 +56,4 @@ RUN apt update && apt install -y \
pkg-config
\
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
--from=builder /kaldi /kaldi
COPY
--from=builder /third_party /third_party
ENV
PATH="${PATH}:/kaldi/bin" LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/kaldi/lib"
.circleci/unittest/linux/docker/scripts/build_third_parties.sh
deleted
100755 → 0
View file @
00cc000e
#!/bin/bash
set
-ex
# Arguments: PREFIX, specifying where to install dependencies into
PREFIX
=
"
$1
"
rm
-rf
/tmp/torchaudio-deps
mkdir
/tmp/torchaudio-deps
pushd
/tmp/torchaudio-deps
# Curl Settings
CURL_OPTS
=
"-L --retry 10 --connect-timeout 5 --max-time 180"
curl
$CURL_OPTS
-o
sox-14.4.2.tar.bz2
"https://downloads.sourceforge.net/project/sox/sox/14.4.2/sox-14.4.2.tar.bz2"
curl
$CURL_OPTS
-o
lame-3.99.5.tar.gz
"https://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz"
curl
$CURL_OPTS
-o
flac-1.3.2.tar.xz
"https://downloads.sourceforge.net/project/flac/flac-src/flac-1.3.2.tar.xz"
curl
$CURL_OPTS
-o
libmad-0.15.1b.tar.gz
"https://downloads.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz"
# unpack the dependencies
tar
xfp sox-14.4.2.tar.bz2
tar
xfp lame-3.99.5.tar.gz
tar
xfp flac-1.3.2.tar.xz
tar
xfp libmad-0.15.1b.tar.gz
# build lame, statically
pushd
lame-3.99.5
./configure
--disable-shared
--enable-static
--prefix
=
"
$PREFIX
/third_party/lame"
CFLAGS
=
-fPIC
CXXFLAGS
=
-fPIC
--with-pic
--disable-debug
--disable-dependency-tracking
--enable-nasm
make
-s
-j
&&
make
install
popd
# build flac, statically
pushd
flac-1.3.2
./configure
--disable-shared
--enable-static
--prefix
=
"
$PREFIX
/third_party/flac"
CFLAGS
=
-fPIC
CXXFLAGS
=
-fPIC
\
--with-pic
--disable-debug
--disable-dependency-tracking
make
-s
-j
&&
make
install
popd
# build mad, statically
pushd
libmad-0.15.1b
# See https://stackoverflow.com/a/12864879/23845
sed
-i
.bak
's/-march=i486//'
configure
./configure
--disable-shared
--enable-static
--prefix
=
"
$PREFIX
/third_party/mad"
CFLAGS
=
-fPIC
CXXFLAGS
=
-fPIC
\
--with-pic
--disable-debug
--disable-dependency-tracking
make
-s
-j
&&
make
install
popd
# build sox, statically
# --without-png makes OS X build less hazardous; somehow the build
# finds png and enables it. We don't want it; we'd need to package
# it statically if we do.
pushd
sox-14.4.2
./configure
--disable-shared
--enable-static
--prefix
=
"
$PREFIX
/third_party/sox"
\
LDFLAGS
=
"-L
$PREFIX
/third_party/lame/lib -L
$PREFIX
/third_party/flac/lib -L
$PREFIX
/third_party/mad/lib"
\
CPPFLAGS
=
"-I
$PREFIX
/third_party/lame/include -I
$PREFIX
/third_party/flac/include -I
$PREFIX
/third_party/mad/include"
\
--with-lame
--with-flac
--with-mad
--without-alsa
--without-coreaudio
--without-png
--without-oggvorbis
--without-oss
--without-sndfile
CFLAGS
=
-fPIC
CXXFLAGS
=
-fPIC
--with-pic
--disable-debug
--disable-dependency-tracking
make
-s
-j
&&
make
install
popd
popd
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment