forked from cornellius-gp/gpytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (32 loc) · 914 Bytes
/
.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
language: python
branches:
only:
- master
python:
- "3.6"
env:
- PYTORCH_VERSION=master
- PYTORCH_VERSION=stable
install:
- if [[ $PYTORCH_VERSION = "master" ]]; then
pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html;
python setup.py build develop;
else
pip3 install https://download.pytorch.org/whl/cpu/torch-1.1.0-cp36-cp36m-linux_x86_64.whl;
fi
script:
- python -c "import torch; print('PyTorch Version:', torch.__version__)"
- python -m unittest discover
matrix:
include:
- env: LINT_CHECK
python: "3.6"
install: pip install flake8 flake8-print
script: flake8
- env: DOCS_CHECK
addons:
apt_packages:
- pandoc
python: "3.6"
install: pip install IPython ipykernel sphinx sphinx_rtd_theme nbsphinx m2r attrs==19.1
script: python setup.py build_sphinx