aboutsummaryrefslogtreecommitdiffstats
path: root/.travis
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-23 12:34:19 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-23 12:43:07 -0600
commitcd8875aa635935a8c82ef771dec3f72752625c03 (patch)
tree0057cd20450efcc981a5f4ea8fa6d37346456901 /.travis
parent4fe07e84d38846be71dd42471b4a86710b9b808e (diff)
downloadcryptography-cd8875aa635935a8c82ef771dec3f72752625c03.tar.gz
cryptography-cd8875aa635935a8c82ef771dec3f72752625c03.tar.bz2
cryptography-cd8875aa635935a8c82ef771dec3f72752625c03.zip
0.9.8 experiment for travis
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/install.sh20
-rwxr-xr-x.travis/run.sh6
2 files changed, 26 insertions, 0 deletions
diff --git a/.travis/install.sh b/.travis/install.sh
index 2003dbed..48b6055e 100755
--- a/.travis/install.sh
+++ b/.travis/install.sh
@@ -61,6 +61,26 @@ else
pyenv install pypy-4.0.1
pyenv global pypy-4.0.1
fi
+ if [[ "${OPENSSL}" == "0.9.8" ]]; then
+ # download, compile, and install if it's not already present via travis cache
+ if [[ ! -f "$HOME/ossl-098/bin/openssl" ]]; then
+ curl -O https://www.openssl.org/source/openssl-0.9.8zh.tar.gz
+ tar zxvf openssl-0.9.8zh.tar.gz
+ cd openssl-0.9.8zh
+ echo "OPENSSL_0.9.8ZH_CUSTOM {
+ global:
+ *;
+ };" > openssl.ld
+ ./config no-ssl2 -Wl,--version-script=openssl.ld -Wl,-Bsymbolic-functions -fPIC shared --prefix=$HOME/ossl-098
+ make depend
+ make install
+ tree $HOME/ossl-098
+ fi
+ export PATH="$HOME/ossl-098/bin:$PATH"
+ export CFLAGS="-I$HOME/ossl-098/include"
+ export LDFLAGS="-L$HOME/ossl-098/lib"
+ export LD_LIBRARY_PATH="$HOME/ossl-098/lib"
+ fi
pip install virtualenv
fi
diff --git a/.travis/run.sh b/.travis/run.sh
index 178dfc20..e0fb24e6 100755
--- a/.travis/run.sh
+++ b/.travis/run.sh
@@ -23,6 +23,12 @@ else
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi
+ if [[ "${OPENSSL}" == "0.9.8" ]]; then
+ export PATH="$HOME/ossl-098/bin:$PATH"
+ export CFLAGS="-I$HOME/ossl-098/include"
+ export LDFLAGS="-L$HOME/ossl-098/lib"
+ export LD_LIBRARY_PATH="$HOME/ossl-098/lib"
+ fi
fi
source ~/.venv/bin/activate
tox -- $TOX_FLAGS