forked from pyro-ppl/pyro
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
76 lines (70 loc) · 2.29 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
70
71
72
73
74
75
76
language: python
sudo: required
env:
global:
- PYTHONPATH=$PWD:$PYTHONPATH
before_install:
- sudo apt-get update -qq
- sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
install:
# install pytorch and its dependencies
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
pip install http://download.pytorch.org/whl/cu75/torch-0.2.0.post2-cp27-cp27mu-manylinux1_x86_64.whl;
else
pip install http://download.pytorch.org/whl/cu75/torch-0.2.0.post2-cp35-cp35m-manylinux1_x86_64.whl;
fi
- pip install -e .[test]
- pip freeze
branches:
only:
- master
- dev
jobs:
fast_finish: true
include:
- stage: lint
python: 2.7
before_install: pip install flake8 nbstripout nbformat
install:
script:
- make lint
#- make scrub;
# git diff-index --quiet HEAD
- stage: unit test
python: 2.7
env: STAGE=docs
script:
- pip install -r docs/requirements.txt
- make docs
- python: 2.7
env: STAGE=unit
script: pytest -vs --cov=pyro --stage unit
- python: 2.7
env: STAGE=examples
script: pytest -vs --cov=pyro --stage test_examples
- python: 3.5
env: STAGE=unit
script: pytest -vs --cov=pyro --stage unit
- python: 3.5
env: STAGE=examples
script: pytest -vs --cov=pyro --stage test_examples
- python: 2.7
env: STAGE=tutorials
script: pytest -v --nbval-lax tutorial/
- stage: integration test
python: 2.7
env: STAGE=integration_batch_1
script: pytest -vs --cov=pyro --stage integration_batch_1
- python: 2.7
env: STAGE=integration_batch_2
script: pytest -vs --cov=pyro --stage integration_batch_2
- python: 3.5
env: STAGE=integration_batch_1
script: pytest -vs --cov=pyro --stage integration_batch_1
- python: 3.5
env: STAGE=integration_batch_2
script: pytest -vs --cov=pyro --stage integration_batch_2
allow_failures:
- python: 2.7
env: STAGE=tutorials
script: pytest -v --nbval-lax tutorial/