Print time taken by slowest examples in travis
@@ -45,12 +45,6 @@ jobs:
script:
- pip install -e .[profile]
- pytest -vs --benchmark-disable tests/perf/test_benchmark.py
- - python: 3.6
- if: type = cron
- env: STAGE=perf
- script:
- - pip install -e .[profile]
- - make perf-test
- stage: profiler
python: 2.7
env: STAGE=profiler
@@ -64,7 +58,7 @@ jobs:
- python: 2.7
env: STAGE=examples
script:
- - CI=1 pytest -vs --cov=pyro --cov-config .coveragerc --stage test_examples
+ - CI=1 pytest -vs --cov=pyro --cov-config .coveragerc --stage test_examples --durations 10
- grep -l smoke_test tutorial/source/*.ipynb | xargs grep -L 'smoke_test = False' \
| CI=1 xargs pytest -vx --nbval-lax --current-env
- python: 3.6
@@ -72,7 +66,10 @@ jobs:
script: pytest -vs --cov=pyro --cov-config .coveragerc --stage unit --durations 20
- python: 3.6
env: STAGE=examples
- script: pytest -vs --cov=pyro --cov-config .coveragerc --stage test_examples
+ script:
+ - CI=1 pytest -vs --cov=pyro --cov-config .coveragerc --stage test_examples --durations 10
+ - grep -l smoke_test tutorial/source/*.ipynb | xargs grep -L 'smoke_test = False' \
+ | CI=1 xargs pytest -vx --nbval-lax --current-env
- stage: integration test
python: 2.7
env: STAGE=integration_batch_1
