]> granicus.if.org Git - curl/commitdiff
travis: remove curl before a normal build
authorDaniel Stenberg <daniel@haxx.se>
Wed, 31 Oct 2018 11:57:36 +0000 (12:57 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 2 Nov 2018 14:59:39 +0000 (15:59 +0100)
on Linux. To make sure the test suite runs with its newly build tool and
doesn't require an external one present.

Bug: #3198
Closes #3200

.travis.yml

index b39fa8a928b29f869ab0587a8061eb6979505a39..3102a474c947c2f111cecf0204905474726740cb 100644 (file)
@@ -316,6 +316,11 @@ script:
     - |
         set -eo pipefail
         if [ "$T" = "normal" ]; then
+             if [ $TRAVIS_OS_NAME = linux ]; then
+               # Remove system curl to make sure we don't rely on it.
+               # Only done on Linux since we're not permitted to on mac.
+               sudo rm -f /usr/bin/curl
+             fi
              ./configure --enable-warnings --enable-werror $C
              make && make examples
              if [ -z $NOTESTS ]; then