-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
82 lines (66 loc) · 1.64 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
77
78
79
80
81
82
language: python
python:
- 2.7
- pypy
env:
# Test against the minimum supported version of eliot
- |
ELIOT='echo -n "eliot=="; python -c "from setup import _MINIMUM_ELIOT_VERSION; print _MINIMUM_ELIOT_VERSION"'
# Test against the released version of eliot which pip will choose to
# install.
- |
ELIOT='echo eliot'
# Test against master@HEAD version of eliot.
- |
ELIOT='echo git+https://github.com/ClusterHQ/eliot.git'
# Test with a too-old version of eliot.
- |
ELIOT='echo eliot==0.3.0'
# Test without any version of eliot.
- |
NO_ELIOT=''
# Build the documentation.
- |
SPHINX_TARGET=html
# Run the tests for the documentation.
- |
SPHINX_TARGET=doctest
matrix:
exclude:
- python: "pypy"
env: "SPHINX_TARGET=html"
- python: "pypy"
env: "SPHINX_TARGET=doctest"
install:
- |
pip install coveralls coverage
- |
python setup.py --version
# Install the selected eliot version.
- |
if [ -v ELIOT ]; then
pip install "$(eval ${ELIOT})"
fi
- |
pip install --editable .[dev]
script:
- |
# Do a Sphinx thing if appropriate.
if [ -v SPHINX_TARGET ]; then
make --directory=doc "${SPHINX_TARGET}"
else
coverage run --branch --source machinist $(type -p trial) machinist
fi
- |
# Don't bother generating a coverage report if we just did Sphinx stuff.
if [ ! -v SPHINX_TARGET ]; then
coverage report --show-missing
fi
after_success:
- |
# Don't bother reporting to coveralls if we just did Sphinx stuff.
if [ ! -v SPHINX_TARGET ]; then
coveralls
fi
notifications:
email: false