]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
travis: only build wolfssl when needed
authorDaniel Stenberg <daniel@haxx.se>
Tue, 16 Mar 2021 09:04:35 +0000 (10:04 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 16 Mar 2021 10:00:19 +0000 (11:00 +0100)
Closes #6751

.travis.yml
scripts/travis/before_script.sh

index 408d4b7ff8af838da581e8b4fd95f2b641c62f21..c86b0273c169bc558440da6dc06e774e1bbce453 100644 (file)
@@ -170,7 +170,7 @@ jobs:
         - libtasn1-6-dev
         - nettle-dev
   - env:
-    - T=debug-wolfssl C="--with-wolfssl --without-ssl"
+    - T=debug-wolfssl C="--with-wolfssl --without-ssl" WOLFSSL="yes"
     - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
     addons:
       apt:
index 231b6ba276f5921017aa0a583287faf7ee1682dc..945132e4657c1402c3a3e4d2a46e9970f447e6b2 100755 (executable)
@@ -137,11 +137,7 @@ if [ "$TRAVIS_OS_NAME" = linux -a "$RUSTLS" ]; then
   make DESTDIR=$HOME/crust install
 fi
 
-# Install common libraries.
-# The library build directories are set to be cached by .travis.yml. If you are
-# changing a build directory name below (eg a version change) then you must
-# change it in .travis.yml `cache: directories:` as well.
-if [ $TRAVIS_OS_NAME = linux ]; then
+if [ $TRAVIS_OS_NAME = linux -a "$WOLFSSL" ]; then
   if [ ! -e $HOME/wolfssl-4.4.0-stable/Makefile ]; then
     cd $HOME
     curl -LO https://github.com/wolfSSL/wolfssl/archive/v4.4.0-stable.tar.gz
@@ -155,6 +151,13 @@ if [ $TRAVIS_OS_NAME = linux ]; then
 
   cd $HOME/wolfssl-4.4.0-stable
   sudo make install
+fi
+
+# Install common libraries.
+# The library build directories are set to be cached by .travis.yml. If you are
+# changing a build directory name below (eg a version change) then you must
+# change it in .travis.yml `cache: directories:` as well.
+if [ $TRAVIS_OS_NAME = linux ]; then
 
   if [ "$MESALINK" = "yes" ]; then
     if [ ! -e $HOME/mesalink-1.0.0/Makefile ]; then