forked from asyml/forte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (67 loc) · 2.82 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
sudo: required
language: python
dist: xenial
cache: pip
python:
- '3.6'
- '3.7'
env:
global:
- secure: ST/+iBBrcHuCMgKpXj8jfvBgOdjc0TgXEP6urdVLMTCVhzGgSwn+gUtMgoW5TzS+doFhvkotEs37izYLJF5pqIlD3yUxCxjLVZj4McIszAecV+3UjVZCIt6sjsv5igUHqF2aXRJT9TvVddHaa6V1yi6DM2Pe5+W+sXU2ni9tbL67Hm2+rut/J5x1G6ZrTveAlsAk/RcT25DzmjiYPT/9OOThzkSIYYiiETraFQtRG+4eKO9U75QXCbmzJnM6/qESWGcQmvMLRo91Ur91GHT1uicCQYt8QqfKyeNcyKyi/nRlFgKL3swpAlfp8868nCR8rRFuOufqsDxq5iFFs5BPi0HWM5E7hxiPllRxlm5VcqDm5WE1ZCRbpRHLnY/73zCUQy+ex/Z7WVoQAMlRvKsJ/SQHCXmLP97JW0+YQFjtIODyIslRNSnElpVV+5lmsMmsEu8J+uBQCUaqsVPP/DBfRQu4rbt9q9yFc1QXO0BrMdWQ/NuxlEdzj8Lw1rTJrUtFSdC8VMtbkARufk8AVXem5wk7gI8h9R3JONBX2dkVIJK4VM8DK473V0LjdXvldZW688H9RBVZtUIPnZRH7E/4uvqiLh2UjDPL/pE7xW3AyxpBQj34Yh2/b3pdLpiLZ7ohVz/F2EVu//J8q8L5T/S5vBENqF9RWkfdkOkDwuTb8So=
matrix:
- TORCH_VER="1.5.0" TENSORFLOW_VER="1.15.0"
install:
- pip install --upgrade pip
- pip install --progress-bar off torch==$TORCH_VER
- pip install --progress-bar off tensorflow==$TENSORFLOW_VER
- pip install --progress-bar off .[nltk,ner,srl,txtgen,stanza,test,example,ir,wikipedia,spacy,sentiment,allennlp]
- git clone https://github.com/asyml/texar-pytorch.git
- cd texar-pytorch
- pip install --progress-bar off .
- cd ..
- rm -rf texar-pytorch
- wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.4.2-linux-x86_64.tar.gz
- tar -zxf elasticsearch-7.4.2-linux-x86_64.tar.gz
- rm -rf elasticsearch-7.4.2-linux-x86_64.tar.gz
- elasticsearch-7.4.2/bin/elasticsearch -d
- pip install faiss-cpu
- pip install pylint==2.5.2 flake8==3.8.2
- pip install mypy==0.780
- pip install pytest==5.1.3
- pip install coverage codecov
script:
- "./scripts/build_ontology_specs.sh"
- pylint forte/ examples/ ft/ scripts/ tests/
- flake8 forte/ examples/ ft/ scripts/ tests/
- mypy .
- spacy download en_core_web_sm
- spacy download xx_ent_wiki_sm
- python -m nltk.downloader punkt averaged_perceptron_tagger wordnet maxent_ne_chunker
words
- export PYTHONPATH=`pwd`
- python examples/Cliner/download_model.py
- pip install python-crfsuite==0.9.7
- coverage run -m pytest
after_success:
- codecov
- "./scripts/travis_after_success.sh"
jobs:
include:
- stage: docs
python: '3.7'
install:
- pip install --upgrade pip
- pip install --progress-bar off -r requirements.txt
- sudo apt-get install libenchant1c2a myspell-en-us
- pip install --progress-bar off -r docs/requirements.txt
- git clone https://github.com/asyml/texar-pytorch.git
- cd texar-pytorch
- pip install --progress-bar off .
- cd ..
- rm -rf texar-pytorch
script:
- cd docs
- sphinx-build -W -b html -d _build/doctrees . _build/html
- sphinx-build -b spelling -d _build/doctrees . _build/spelling
notifications:
email: false