forked from espnet/espnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
89 lines (80 loc) · 2.3 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
language: python
cache:
- pip
- ccache
matrix:
include:
- os: linux
python: "2.7"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- TH_VERSION="0.4.0"
- CC="gcc-7"
- CXX="g++-7"
- os: linux
python: "3.6"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- TH_VERSION="0.4.0"
- CC="gcc-7"
- CXX="g++-7"
- os: linux
python: "2.7"
env:
- TH_VERSION="0.3.1"
- os: linux
python: "3.6"
env:
- TH_VERSION="0.3.1"
install:
- pip install -U pip wheel
- pip install -r ./tools/test_requirements.txt
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
pip install http://download.pytorch.org/whl/cpu/torch-${TH_VERSION}-cp27-cp27mu-linux_x86_64.whl ;
else
pip3 install http://download.pytorch.org/whl/cpu/torch-${TH_VERSION}-cp36-cp36m-linux_x86_64.whl ;
fi
# install matplotlib
- pip install matplotlib
# install warp-ctc
- git clone https://github.com/SeanNaren/warp-ctc.git
- cd warp-ctc && git checkout 9e5b238f8d9337b0c39b3fd01bbaff98ba523aa5 && 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
addons:
apt:
packages:
- cmake
- python-dev
- python3-dev