@@ -17,6 +17,9 @@ addons:
17
17
- swig
18
18
# needed for GMPY
19
19
- libgmp-dev
20
+ # needed for GMPY2
21
+ - libmpfr-dev
22
+ - libmpc-dev
20
23
before_cache :
21
24
- rm -f $HOME/.cache/pip/log/debug.log
22
25
26
29
env : TACKPY=false
27
30
- python : 2.7
28
31
env : TACKPY=false
32
+ - python : 3.3
33
+ env : TACKPY=false
29
34
- python : 3.4
30
35
env : TACKPY=false
31
36
- python : 3.5
60
65
dist : xenial
61
66
sudo : true
62
67
env : M2CRYPTO=true
68
+ - python : 3.8
69
+ dist : xenial
70
+ sudo : true
71
+ env : M2CRYPTO=true
72
+ - python : 3.9
73
+ dist : xenial
74
+ sudo : true
75
+ env : M2CRYPTO=true
63
76
- python : 2.7
64
77
env : PYCRYPTO=true
65
78
- python : 3.4
@@ -122,7 +135,14 @@ before_install:
122
135
install :
123
136
- if [[ -e build-requirements-${TRAVIS_PYTHON_VERSION}.txt ]]; then travis_retry pip install -r build-requirements-${TRAVIS_PYTHON_VERSION}.txt; else travis_retry pip install -r build-requirements.txt; fi
124
137
- if [[ $TACKPY == 'true' ]]; then travis_retry pip install tackpy; fi
125
- - if [[ $M2CRYPTO == 'true' ]]; then travis_retry pip install --pre m2crypto; fi
138
+ - |
139
+ if [[ $M2CRYPTO == 'true' ]]; then
140
+ if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]] || [[ $TRAVIS_PYTHON_VERSION == 3.4 ]] || [[ $TRAVIS_PYTHON_VERSION == 3.5 ]] || [[ $TRAVIS_PYTHON_VERSION == 3.6 ]] ; then
141
+ travis_retry pip install 'm2crypto<0.37';
142
+ else
143
+ travis_retry pip install --pre m2crypto;
144
+ fi
145
+ fi
126
146
- if [[ $PYCRYPTO == 'true' ]]; then travis_retry pip install pycrypto; fi
127
147
- if [[ $PYCRYPTODOME == 'true' ]]; then travis_retry pip install pycryptodome; fi
128
148
- if [[ $GMPY == 'true' ]]; then travis_retry pip install gmpy; fi
@@ -138,14 +158,13 @@ script:
138
158
fi
139
159
- make test-local
140
160
# --appends is supported only in the new coverage (>4)
141
- - if [[ $TRAVIS_PYTHON_VERSION != '3.2' ]]; then coverage combine --append; fi
161
+ - coverage combine --append
142
162
- coverage report -m
143
163
- ./setup.py install
144
164
- make test
145
165
# pylint doesn't work on 2.6: https://bitbucket.org/logilab/pylint/issue/390/py26-compatiblity-broken
146
- # diff-quality doesn't work on 3.2: https://github.com/edx/diff-cover/issues/94
147
166
- |
148
- if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]] && [[ $TRAVIS_PYTHON_VERSION != '3.2' ]] ; then
167
+ if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then
149
168
pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" tlslite > pylint_report.txt || :
150
169
diff-quality --violations=pylint --fail-under=90 pylint_report.txt
151
170
fi
0 commit comments