forked from facebook/Ax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (66 loc) · 2.99 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
68
69
language: python
python:
- 3.6
before_install:
# decrypting ssh key to be able to access private botorch repo
- openssl aes-256-cbc -K $encrypted_39ecd60da1dc_key -iv $encrypted_39ecd60da1dc_iv -in botorch_key.enc -out botorch_key -d
- chmod 600 botorch_key
- eval "$(ssh-agent -s)"
- ssh-add botorch_key
matrix:
include:
- name: "Tests: Python 3.6"
python: "3.6"
install:
- pip install cython numpy
# TODO: Remove once GPyTorch 0.3.2 is released and marked a dep. of botorch
- pip install -q git+https://github.com/cornellius-gp/gpytorch.git@32911e3b51901917c0f14101972581c1295b5edb
# TODO: Remove once PyTorch 1.1 is released and marked a dep. of botorch
- pip install -q torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
- pip install git+ssh://[email protected]/pytorch/botorch.git
- pip install -q -e .[dev,mysql,notebook]
script:
- pytest -ra
- name: "Tests: Python 3.7"
# Enable Python 3.7 w/o without globally enabling sudo and xenial dist
# See https://github.com/travis-ci/travis-ci/issues/9815
python: "3.7"
dist: xenial
install:
- pip install cython numpy
# TODO: Remove once GPyTorch 0.3.2 is released and marked a dep. of botorch
- pip install -q git+https://github.com/cornellius-gp/gpytorch.git@32911e3b51901917c0f14101972581c1295b5edb
# TODO: Remove once PyTorch 1.1 is released and marked a dep. of botorch
- pip install -q torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
- pip install git+ssh://[email protected]/pytorch/botorch.git
- pip install -q -e .[dev,mysql,notebook]
script:
- pytest -ra
- name: "Lint: black (Python 3.6)"
python: "3.6"
install:
- pip install black
script:
- black --check --diff .
- name: "Lint: flake8 (Python 3.6)"
python: "3.6"
install:
- pip install flake8
script:
# don't use .flake8 config for now, since don't need custom plugin
- flake8 --isolated --ignore=T484,T499,W503,E704,E231,E203 --max-line-length=88
- name: "Docs: Sphinx (Python 3.6)"
python: "3.6"
install:
- pip install cython numpy
# TODO: Remove once GPyTorch 0.3.2 is released and marked a dep. of botorch
- pip install -q git+https://github.com/cornellius-gp/gpytorch.git@32911e3b51901917c0f14101972581c1295b5edb
# TODO: Remove once PyTorch 1.1 is released and marked a dep. of botorch
- pip install -q torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
- pip install git+ssh://[email protected]/pytorch/botorch.git
- pip install -q -e .[dev,mysql,notebook,gpy]
script:
# warnings treated as errors
- sphinx-build -WT sphinx/source sphinx/build
# since -W flag breaks on first error, re-run without it to print all
- sphinx-build sphinx/source sphinx/build