aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-03-12 18:09:03 +0100
committerMichał Górny <mgorny@gentoo.org>2017-03-13 22:46:37 +0100
commit70fac9ed390c12a2fa1c9063eaeb1189dcf49a1c (patch)
treeac3f0edad234c24b779466dccf26108ede1355d6 /.travis.yml
parentportage.checksum: Support pygost as fallback Streebog provider (diff)
downloadportage-70fac9ed390c12a2fa1c9063eaeb1189dcf49a1c.tar.gz
portage-70fac9ed390c12a2fa1c9063eaeb1189dcf49a1c.tar.bz2
portage-70fac9ed390c12a2fa1c9063eaeb1189dcf49a1c.zip
travis: Install additional (pure Python) crypto providers if necessary
Install pysha3 to provide the SHA3 routines on Python < 3.6, and install pygost to provide a Streebog implementation.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 7fe3c06aa..196e3520a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,7 +8,14 @@ python:
- pypy
# command to install dependencies
-install: "pip install lxml"
+install:
+ - pip install lxml
+ # python3.6+ has sha3 built-in, for older versions install pysha3
+ # (except for pypy where pysha3 is broken)
+ - "[[ ${TRAVIS_PYTHON_VERSION} == 3.[6789] || ${TRAVIS_PYTHON_VERSION} == pypy ]] || pip install pysha3"
+ # always install pygost for Streebog
+ # (except for py3.3 which it does not support)
+ - "[[ ${TRAVIS_PYTHON_VERSION} == 3.3 ]] || pip install pygost"
script:
- printf "[build_ext]\nportage-ext-modules=true" >> setup.cfg