forked from OpenNMT/OpenNMT-tf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.72 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
language: python
python:
- "3.5"
before_install:
- pip install -e .[tests]
before_script:
- wget https://s3.amazonaws.com/opennmt-models/transliteration-aren-v2.tar.gz
- mkdir -p $TRAVIS_BUILD_DIR/testdata
- tar xf transliteration-aren-v2.tar.gz -C $TRAVIS_BUILD_DIR/testdata
script:
- nose2 -v
matrix:
include:
- python: "3.6"
install:
- pip install pylint==2.4.* wheel twine
script:
- nose2 -v
- pylint opennmt/
after_success:
- |
if [[ -n $TRAVIS_TAG ]]; then
python setup.py sdist bdist_wheel --universal
twine upload dist/*
fi
- python: "3.6"
env:
- secure: "YoOVLtg7j03Il5IixovqClvANqQgO/D4idZ2JANmmj+Sea4iVTEIpd4WWLcis99yctY1Kh8aAeGKSFtHUB52+5N2ignewfAdHc3yPjsk8EngAtnhZfc9J40Inky/ogZSVRm4Wh+/3+zvN3VYKVB6hmOgfz9sBxfwBwOOLLliANnyHLo2j0a4GDhkIDy6IDGnl8yO8vMG6W83KVbmyS36Y6zNmMi26/uWTWMISrErrWc5BOAqWVsFvy5lZJDXQUbQ+nSBhprNWCVkZFtWd35EP3f6iVzaR09EfOwJTGKg1TmzmJr1OydNK/hrr/YVlb3byvDFmPPPz7dBu/yXmc26j/N6O5N8BQLqGv2JBNYpy8v4zV77uGjH+W0kXKHz4QAYuQHU40TjXFVa3ZEoWDNYM6T2lvZ+mAfoj9JgsAFQ9XZhmKH6al+5HnDzhohqxTVef32dIDY+mffNb0jofexVCu+ko1wCTjUh4KyzQKSncc4Dq4welYMbfIsLMaeyHdtz5hcJhUlseVbOu6rmLtaBVuYJ350paN4/rWD9svQ+ek53XrSUpiRRLO1VU7ErruralpG/DPyIZIzWKREqGoz1eBoOxjq+iytZqiLbeMwYP3BYmg+RvMzW6m1lpkAeAMMqsEYVj/IdTnTY7jxR1yaV0A7KpuON9pBTSjKy5Ci7cCE="
install:
- pip install -r docs/requirements.txt
- pip install git+git://github.com/drdoctr/doctr@3288a31b66522312a1c541486613b14389dc73f0
script:
- set -e
- python docs/generate-apidoc.py docs/package
- sphinx-build docs docs/build
- doctr deploy --build-tags --branch-whitelist --built-docs docs/build .