forked from OpenNMT/OpenNMT-tf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (49 loc) · 2.01 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
language: python
python:
- "2.7"
env:
global:
- LATEST_TF_VERSION="1.13.*"
matrix:
- TF_VERSION="1.8.*"
- TF_VERSION="1.9.*"
- TF_VERSION="1.10.*"
- TF_VERSION="1.11.*"
- TF_VERSION="1.12.*"
- TF_VERSION="$LATEST_TF_VERSION"
before_install:
- pip install tensorflow==$TF_VERSION
- pip install -e .[tests]
before_script:
- wget https://s3.amazonaws.com/opennmt-models/transliteration-aren.tar.gz
- mkdir -p $TRAVIS_BUILD_DIR/testdata
- tar xf transliteration-aren.tar.gz -C $TRAVIS_BUILD_DIR/testdata
script:
- nose2
matrix:
include:
- python: "3.6"
env:
- TF_VERSION="$LATEST_TF_VERSION"
install:
- pip install pylint==2.2.* wheel twine
script:
- nose2
- pylint opennmt/
after_success:
- |
if [[ -n $TRAVIS_TAG ]]; then
python setup.py sdist bdist_wheel --universal
twine upload dist/*
fi
- python: "3.6"
env:
- TF_VERSION="$LATEST_TF_VERSION"
- 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
- sphinx-build docs docs/build
- doctr deploy --build-tags --branch-whitelist --built-docs docs/build .