forked from espnet/espnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (62 loc) · 1.99 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: python
cache:
- pip
- ccache
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- python-dev
- python3-dev
- g++-7
env:
global:
- CC=gcc-7
- CXX=g++-7
- TH_VERSION=0.4.1
matrix:
- USE_CONDA=false ESPNET_PYTHON_VERSION=2.7
- USE_CONDA=true ESPNET_PYTHON_VERSION=2.7
- USE_CONDA=true ESPNET_PYTHON_VERSION=3.7
install:
- if [[ ${USE_CONDA} == false ]]; then
pip install http://download.pytorch.org/whl/cpu/torch-${TH_VERSION}-cp27-cp27mu-linux_x86_64.whl ;
else
cd tools;
make -f conda.mk PYTHON_VERSION=${ESPNET_PYTHON_VERSION} conda;
export PATH=`pwd`/venv/bin:$PATH;
conda install pytorch-cpu=${TH_VERSION} -c pytorch;
cd -;
fi
- pip install -U pip wheel
- pip install -r ./tools/test_requirements.txt
# install matplotlib
- pip install matplotlib
# install warp-ctc (use @jnishi patched version)
- git clone https://github.com/jnishi/warp-ctc.git
- cd warp-ctc && mkdir build && cd build && cmake .. && make -j4 && cd ..
- pip install cffi
- cd pytorch_binding && python setup.py install && cd ../.. # maybe need to: apt-get install python-dev
# install chainer
- grep -v cupy tools/requirements.txt | pip install -r /dev/stdin
- cd tools && make kaldi-io-for-python && cd -
# install doc deps
- pip install -r doc/requirements.txt
# install chainer_ctc
- pip install cython
- git clone https://github.com/jheymann85/chainer_ctc.git
- cd chainer_ctc && chmod +x install_warp-ctc.sh && ./install_warp-ctc.sh
- pip install . && cd ..
- export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:`pwd`/chainer_ctc/ext/warp-ctc/build
script:
# TODO test coding style?
- flake8 src test
- autopep8 -r src test --exclude src/utils --global-config .pep8 --diff --max-line-length 120 | tee check_autopep8
- test ! -s check_autopep8
- pytest
- travis-sphinx build --source=doc --nowarn
sudo: false
after_success:
- travis-sphinx deploy