forked from tokunbo/behave-parallel
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
54 lines (46 loc) · 1.22 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
language: python
sudo: false
python:
- "3.6"
- "2.7"
- "3.5"
- "pypy"
- "pypy3"
- "3.7-dev"
# -- DISABLED:
# - "nightly"
# - "3.4"
# - "3.3"
#
# NOW SUPPORTED: "3.5" => python 3.5.2 (>= 3.5.1)
# NOTE: nightly = 3.7-dev
# -- TEST-BALLON: Check if Python 3.6 is actually Python 3.5.1 or newer
matrix:
allow_failures:
- python: "3.7-dev"
- python: "nightly"
cache:
directories:
- $HOME/.cache/pip
install:
- travis_retry pip install -q -r py.requirements/ci.travis.txt
- pip show setuptools
- python setup.py -q install
script:
- python --version
- pytest test tests
- behave -f progress --junit features/
- behave -f progress --junit tools/test-features/
- behave -f progress --junit issue.features/
after_failure:
- echo "FAILURE DETAILS (from XML reports):"
- bin/behave.junit_filter.py --status=failed reports
# -- ALTERNATIVE:
# egrep -L 'errors="0"|failures="0"' reports/*.xml | xargs -t cat
# -- USE: New container-based infrastructure for faster startup.
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
#
# SEE ALSO:
# http://lint.travis-ci.org
# http://docs.travis-ci.com/user/caching/
# http://docs.travis-ci.com/user/multi-os/ (Linux, MACOSX)