summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2018-01-16 21:02:26 +0100
committerGitHub <noreply@github.com>2018-01-16 21:02:26 +0100
commitced9cb5303ad1447f84d923e0c7f769f5e0c6297 (patch)
treef575b3d1d1004b8ba06a007175ec08dd099f16fa /.travis.yml
parent9f1b7b93f5f0ef589e7b272e127cacf4ce5d23f1 (diff)
downloadcpython-git-ced9cb5303ad1447f84d923e0c7f769f5e0c6297.tar.gz
bpo-32549: Compile OpenSSL 1.1.0 on Travis CI (#5180)
Use an improved version of multissl test helper to compile a local copy of OpenSSL 1.1.0g. Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index c207bd72da..687d0214ab 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,6 +7,19 @@ group: beta
cache:
- pip
- ccache
+ - directories:
+ - $HOME/multissl
+
+env:
+ global:
+ - OPENSSL=1.1.0g
+ - OPENSSL_DIR="$HOME/multissl/openssl/${OPENSSL}"
+ - PATH="${OPENSSL_DIR}/bin:$PATH"
+ - CFLAGS="-I${OPENSSL_DIR}/include"
+ - LDFLAGS="-L${OPENSSL_DIR}/lib"
+ # Set rpath with env var instead of -Wl,-rpath linker flag
+ # OpenSSL ignores LDFLAGS when linking bin/openssl
+ - LD_RUN_PATH="${OPENSSL_DIR}/lib"
branches:
only:
@@ -48,6 +61,10 @@ matrix:
echo "Only docs were updated, stopping build process."
exit
fi
+ python3 Tools/ssl/multissltests.py --steps=library \
+ --base-directory ${HOME}/multissl \
+ --openssl ${OPENSSL} >/dev/null
+ openssl version
./configure
make -s -j4
# Need a venv that can parse covered code.
@@ -71,6 +88,13 @@ before_script:
echo "Only docs were updated, stopping build process."
exit
fi
+ if [ "${TESTING}" != "docs" ]; then
+ # clang complains about unused-parameter a lot, redirect stderr
+ python3 Tools/ssl/multissltests.py --steps=library \
+ --base-directory ${HOME}/multissl \
+ --openssl ${OPENSSL} >/dev/null 2>&1
+ fi
+ openssl version
./configure --with-pydebug
make -j4
make -j4 regen-all clinic