travis: add build with iconv enabled

... to verify it builds and works fine.

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

Closes #1872

Daniel Stenberg 1 year ago
parent
commit
bb5017704a
2 changed files with 13 additions and 0 deletions
  1. 1 0
      .travis-iconv-env.sh
  2. 12 0
      .travis.yml

+ 1 - 0
.travis-iconv-env.sh

@@ -0,0 +1 @@
1
+export CPPFLAGS="-DCURL_DOES_CONVERSIONS -DHAVE_ICONV -DCURL_ICONV_CODESET_OF_HOST='\"ISO8859-1\"'"

+ 12 - 0
.travis.yml

@@ -51,6 +51,10 @@ matrix:
51 51
           compiler: clang
52 52
           dist: trusty
53 53
           env: T=debug
54
+        - os: linux
55
+          compiler: gcc
56
+          dist: trusty
57
+          env: T=iconv
54 58
         - os: osx
55 59
           compiler: gcc
56 60
           env: T=debug
@@ -172,6 +176,14 @@ script:
172 176
         fi
173 177
     - |
174 178
         set -eo pipefail
179
+        if [ "$T" = "iconv" ]; then
180
+             source .travis-iconv-env.sh
181
+             ./configure --enable-debug --enable-werror $C
182
+             make && make examples
183
+             make TFLAGS=-n test-nonflaky
184
+        fi
185
+    - |
186
+        set -eo pipefail
175 187
         if [ "$T" = "cmake" ]; then
176 188
              mkdir build
177 189
              cd build