Skip to content

Commit 5f76242

Browse files
authored
Add Travis CI (#13)
* Update requirement * Add travis.yml * fixup * fix * Needs cmudict * don't run jp tests
1 parent c4c4479 commit 5f76242

File tree

4 files changed

+37
-3
lines changed

4 files changed

+37
-3
lines changed

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: python
2+
3+
python:
4+
- "3.6"
5+
6+
notifications:
7+
email: false
8+
9+
before_install:
10+
- sudo apt-get update
11+
- if [["$TRAVIS_PYTHON_VERSION" == "2.7"]]; then
12+
wget http://repo.continuum.io/miniconda/Miniconda-3.8.3-Linux-x86_64.sh -O miniconda.sh;
13+
else
14+
wget http://repo.continuum.io/miniconda/Miniconda3-3.8.3-Linux-x86_64.sh -O miniconda.sh;
15+
fi
16+
- bash miniconda.sh -b -p $HOME/miniconda
17+
- export PATH="$HOME/miniconda/bin:$PATH"
18+
- hash -r
19+
- conda config --set always_yes yes --set changeps1 no
20+
- conda update -q conda
21+
# Useful for debugging any issues with conda
22+
- conda config --add channels pypi
23+
- conda info -a
24+
- deps='pip numpy scipy cython nose pytorch'
25+
- conda create -q -n test-environment "python=$TRAVIS_PYTHON_VERSION" $deps -c pytorch
26+
- source activate test-environment
27+
28+
install:
29+
- pip install -e ".[test]"
30+
- python -c "import nltk; nltk.download('cmudict')"
31+
32+
script:
33+
- nosetests -v -w tests/ -a '!local_only'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ python train.py --data-root=./data/ljspeech --checkpoint-dir=checkpoints_nyanko
5555
- PyTorch >= v0.3
5656
- TensorFlow >= v1.3
5757
- [tensorboard-pytorch](https://github.com/lanpa/tensorboard-pytorch) (master)
58-
- [nnmnkwii](https://github.com/r9y9/nnmnkwii) >= v0.0.9
58+
- [nnmnkwii](https://github.com/r9y9/nnmnkwii) >= v0.0.11
5959
- [MeCab](http://taku910.github.io/mecab/) (Japanese only)
6060

6161
## Installation

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ def run(self):
5959
"librosa",
6060
"numba",
6161
"lws <= 1.0",
62+
"nltk",
6263
],
6364
extras_require={
6465
"train": [
6566
"docopt",
6667
"tqdm",
6768
"tensorboardX",
68-
"nnmnkwii >= 0.0.9",
69-
"nltk",
69+
"nnmnkwii >= 0.0.11",
7070
],
7171
"test": [
7272
"nose",

tests/test_frontend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def test_en():
1515
assert t == "hello world.~"
1616

1717

18+
@attr("local_only")
1819
def test_ja():
1920
f = getattr(frontend, "jp")
2021
seq = f.text_to_sequence("こんにちわ")

0 commit comments

Comments
 (0)