forked from espnet/espnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
87 lines (76 loc) · 2.59 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
language: python
python:
- 2.7
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
matrix:
- USE_CONDA=false ESPNET_PYTHON_VERSION=2.7 TH_VERSION=0.4.1
- USE_CONDA=true ESPNET_PYTHON_VERSION=2.7 TH_VERSION=0.4.1
- USE_CONDA=true ESPNET_PYTHON_VERSION=2.7 TH_VERSION=1.0.0
- USE_CONDA=true ESPNET_PYTHON_VERSION=3.7 TH_VERSION=0.4.1
- USE_CONDA=true ESPNET_PYTHON_VERSION=3.7 TH_VERSION=1.0.0
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 PYTHON_VERSION=${ESPNET_PYTHON_VERSION} venv;
source venv/etc/profile.d/conda.sh;
conda config --set always_yes yes --set changeps1 no;
conda activate;
conda update -y conda;
conda install -y pytorch-cpu=${TH_VERSION} -c pytorch;
cd -;
fi
- pip install -U pip wheel
# install espnet
- pip install -e .
- pip install -e .[test]
- pip install -e .[doc]
# install matplotlib
- pip install matplotlib
# install warp-ctc (use @jnishi patched version)
- git clone https://github.com/jnishi/warp-ctc.git
- if [[ "${TH_VERSION}" != 0.4.1 ]]; then
cd warp-ctc; git checkout -b pytorch-1.0.0 remotes/origin/pytorch-1.0.0; cd ..;
fi
- cd warp-ctc && mkdir build && cd build && cmake .. && make -j4 && cd ..
- pip install cffi
- cd pytorch_binding && python setup.py install && cd ../..
# install kaldiio
- pip install git+https://github.com/nttcslab-sp/kaldiio.git
# 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
# install bats-core
- git clone https://github.com/bats-core/bats-core.git
- export PATH=$(pwd)/bats-core/bin:$PATH
script:
# TODO test coding style?
- flake8 espnet test utils
- autopep8 -r espnet test utils --global-config .pep8 --diff --max-line-length 120 | tee check_autopep8
- test ! -s check_autopep8
- pytest
- bats test_utils
- travis-sphinx build --source=doc --nowarn
- bash -c 'find egs -name "run.sh" -printf "%p" -execdir shellcheck -x -e SC1091 -e SC2086 {} \; ; cd ${TRAVIS_BUILD_DIR}/utils ; shellcheck -x -e SC1091 -e SC2086 *.sh'
sudo: false
after_success:
- travis-sphinx deploy