-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
61 lines (59 loc) · 1.67 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
os: linux
language: python
dist: xenial
cache: pip
python:
- '3.6'
- '3.7'
env:
matrix:
- TORCH_VER="1.5.0"
- TORCH_VER="1.6.0"
install:
# Installing pip from master source due to https://github.com/pypa/pip/issues/9215
- pip install --progress-bar off pip==21.0.1
#- pip install --upgrade pip
- pip install --progress-bar off -r requirements.txt
- pip install --progress-bar off torch==$TORCH_VER
- pip install --progress-bar off .[extras]
# - git clone https://github.com/asyml/forte.git
# - cd forte
# - pip install --progress-bar off .
# - cd ..
# - rm -rf forte
- pip install --progress-bar off forte
- pip install pylint==2.6.0 flake8==3.8.2
- pip install mypy==0.790
- pip install pytest==5.1.3
- pip install coverage codecov
- pip install elasticsearch
- pip install sklearn
- pip install faiss-cpu --no-cache
script:
- pylint petuum_med/
- flake8 petuum_med/
- mypy .
- coverage run -m pytest
after_success:
- codecov
# jobs:
# include:
# - stage: docs
# python: '3.7'
# install:
# - pip install --upgrade pip
# - pip install --progress-bar off -r requirements.txt
# - pip install --progress-bar off .[extras]
# - pip install --progress-bar off -r docs/requirements.txt
# - git clone https://github.com/asyml/forte.git
# - cd forte
# - pip install --progress-bar off .
# - cd ..
# - rm -rf forte
# - pip install pyenchant
# script:
# - cd docs
# - sphinx-build -W -b html -d _build/doctrees . _build/html
# - sphinx-build -W -b spelling -d _build/doctrees . _build/spelling
notifications:
email: false