]> granicus.if.org Git - curl/commitdiff
travis: add build with iconv enabled
authorDaniel Stenberg <daniel@haxx.se>
Thu, 7 Sep 2017 10:42:30 +0000 (12:42 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 15 Feb 2018 13:18:34 +0000 (14:18 +0100)
... to verify it builds and works fine.

Ref: https://curl.haxx.se/mail/lib-2017-09/0031.html

Closes #1872

.travis-iconv-env.sh [new file with mode: 0644]
.travis.yml

diff --git a/.travis-iconv-env.sh b/.travis-iconv-env.sh
new file mode 100644 (file)
index 0000000..bb7dcf4
--- /dev/null
@@ -0,0 +1 @@
+export CPPFLAGS="-DCURL_DOES_CONVERSIONS -DHAVE_ICONV -DCURL_ICONV_CODESET_OF_HOST='\"ISO8859-1\"'"
index d2924556ae5a9d842a0fa97848ea3ab65ae00dee..abca7bd5744ecd98848aa01e13cb138b2e354ff2 100644 (file)
@@ -51,6 +51,10 @@ matrix:
           compiler: clang
           dist: trusty
           env: T=debug
+        - os: linux
+          compiler: gcc
+          dist: trusty
+          env: T=iconv
         - os: osx
           compiler: gcc
           env: T=debug
@@ -170,6 +174,14 @@ script:
              make && make examples
              make test-nonflaky
         fi
+    - |
+        set -eo pipefail
+        if [ "$T" = "iconv" ]; then
+             source .travis-iconv-env.sh
+             ./configure --enable-debug --enable-werror $C
+             make && make examples
+             make TFLAGS=-n test-nonflaky
+        fi
     - |
         set -eo pipefail
         if [ "$T" = "cmake" ]; then