forked from pyro-ppl/pyro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (64 loc) · 2.08 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
sudo: true
env:
global:
- PYTHONPATH=$PWD:$PYTHONPATH
install:
# download and install PyTorch wheel
- pip install --upgrade awscli
- mkdir -p tmp
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
aws s3 --no-sign-request sync s3://pyro-ppl/ci tmp --exclude "*" --include "*-cp27-*";
else
aws s3 --no-sign-request sync s3://pyro-ppl/ci tmp --exclude "*" --include "*-cp35-*";
fi
- pip install tmp/*
- rm -r tmp
- 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 --durations 20
- 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 --durations 20
- python: 3.5
env: STAGE=examples
script: pytest -vs --cov=pyro --stage test_examples
- stage: integration test
python: 2.7
env: STAGE=integration_batch_1
script: pytest -vs --cov=pyro --stage integration_batch_1 --durations 10
- python: 2.7
env: STAGE=integration_batch_2
script: pytest -vs --cov=pyro --stage integration_batch_2 --durations 10
- python: 3.5
env: STAGE=integration_batch_1
script: pytest -vs --cov=pyro --stage integration_batch_1 --durations 10
- python: 3.5
env: STAGE=integration_batch_2
script: pytest -vs --cov=pyro --stage integration_batch_2 --durations 10