Skip to content

Commit 59f05ef

Browse files
committed
fix: change commands order to fix installation of html5validator and rflint.
It seems like old version of ansible pulled some old dependency that affects pip: File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 46, in <module> import OpenSSL.SSL File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import rand, crypto, SSL File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module> SSL_ST_INIT = _lib.SSL_ST_INIT AttributeError: 'module' object has no attribute 'SSL_ST_INIT' When we install html5validator/rflint first we don't have that issue because one of them pulled a newer version of a dependency that is needed by pip. Fix #1020
1 parent 620fb52 commit 59f05ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ before_script:
1414
mysql -u root -e 'CREATE DATABASE mystamps CHARACTER SET utf8;';
1515
mkdir -p /tmp/uploads /tmp/preview;
1616
cp src/main/resources/test/test.png /tmp/uploads/1.png;
17-
if [ "$TRAVIS_BRANCH" = 'prod' -a "$TRAVIS_PULL_REQUEST" = 'false' ]; then
18-
pip install --user ansible==2.1.1.0;
19-
fi;
2017
npm install -g bootlint;
2118
pip install --user html5validator;
2219
pip install --user robotframework-lint;
20+
if [ "$TRAVIS_BRANCH" = 'prod' -a "$TRAVIS_PULL_REQUEST" = 'false' ]; then
21+
pip install --user ansible==2.1.1.0;
22+
fi;
2323
if [ "$TRAVIS_PULL_REQUEST" != 'false' ]; then
2424
gem install danger nokogiri --no-ri --no-rdoc;
2525
fi;

0 commit comments

Comments
 (0)