Skip to content

Commit

Permalink
Merge pull request #106 from pkuyym/fix_ci
Browse files Browse the repository at this point in the history
Fix ci
  • Loading branch information
pkuyym authored Jun 20, 2017
2 parents 06f272a + b04028c commit 6a697c2
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis/unittest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ abort(){

unittest(){
cd $1 > /dev/null
if [ -f "requirements.txt" ]; then
pip install -r requirements.txt
if [ -f "setup.sh" ]; then
sh setup.sh
fi
if [ $? != 0 ]; then
exit 1
Expand Down
2 changes: 1 addition & 1 deletion deep_speech_2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Please replace `$PADDLE_INSTALL_DIR` with your own paddle installation directory.

```
pip install -r requirements.txt
sh setup.sh
export LD_LIBRARY_PATH=$PADDLE_INSTALL_DIR/Paddle/third_party/install/warpctc/lib:$LD_LIBRARY_PATH
```

Expand Down
3 changes: 1 addition & 2 deletions deep_speech_2/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
SoundFile==0.9.0.post1
wget==3.2
scikits.samplerate==0.3.3
scipy==0.13.0b1
scipy==0.13.1
30 changes: 30 additions & 0 deletions deep_speech_2/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

# install python dependencies
if [ -f 'requirements.txt' ]; then
pip install -r requirements.txt
fi
if [ $? != 0 ]; then
echo "Install python dependencies failed !!!"
exit 1
fi

# install scikits.samplerate
curl -O "http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz"
if [ $? != 0 ]; then
echo "Download libsamplerate-0.1.9.tar.gz failed !!!"
exit 1
fi
tar -xvf libsamplerate-0.1.9.tar.gz
cd libsamplerate-0.1.9
./configure && make && make install
cd -
rm -rf libsamplerate-0.1.9
rm libsamplerate-0.1.9.tar.gz
pip install scikits.samplerate==0.3.3
if [ $? != 0 ]; then
echo "Install scikits.samplerate failed !!!"
exit 1
fi

echo "Install all dependencies successfully."

0 comments on commit 6a697c2

Please sign in to comment.