diff options
author | Silvio Traversaro <silvio@traversaro.it> | 2020-12-13 01:29:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-13 01:29:18 +0100 |
commit | 5f1c91499486c97bcd176102549a03564a33a129 (patch) | |
tree | c06d4054e11fd6b7ec26656ccf4c929c13f89b57 | |
parent | 008df693cf5a71b8f1db87731a7b5af87400e5dd (diff) | |
parent | 22020637d7a59dbc983f3e2751f71acf19891802 (diff) | |
download | dlfcn-win32-5f1c91499486c97bcd176102549a03564a33a129.tar.gz dlfcn-win32-5f1c91499486c97bcd176102549a03564a33a129.tar.bz2 dlfcn-win32-5f1c91499486c97bcd176102549a03564a33a129.zip |
Merge pull request #88 from pali/master
Run Travis tests also under i586-mingw32msvc-gcc compiler
-rw-r--r-- | .travis.yml | 13 | ||||
-rwxr-xr-x | tools/ci-build.sh | 4 |
2 files changed, 14 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 4df8ce7..ebc6834 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -15,5 +15,18 @@ env: | |||
15 | - ci_buildsys=cmake | 15 | - ci_buildsys=cmake |
16 | - ci_buildsys=Makefile | 16 | - ci_buildsys=Makefile |
17 | 17 | ||
18 | jobs: | ||
19 | include: | ||
20 | - dist: trusty | ||
21 | compiler: i586-mingw32msvc-gcc | ||
22 | addons: | ||
23 | apt: | ||
24 | packages: | ||
25 | - mingw32 | ||
26 | - wine | ||
27 | env: ci_buildsys=Makefile | ||
28 | # Check that we have a real i586-mingw32msvc-gcc compiler as sometimes it is just a symlink to i686-w64-mingw32-gcc | ||
29 | before_script: "i586-mingw32msvc-gcc -v 2>&1 | grep -q -x 'Target: i586-mingw32msvc'" | ||
30 | |||
18 | script: | 31 | script: |
19 | - ci_target=${CC%-*} ./tools/ci-build.sh | 32 | - ci_target=${CC%-*} ./tools/ci-build.sh |
diff --git a/tools/ci-build.sh b/tools/ci-build.sh index a7d79b1..366a407 100755 --- a/tools/ci-build.sh +++ b/tools/ci-build.sh | |||
@@ -11,8 +11,6 @@ set -x | |||
11 | # target to build for | 11 | # target to build for |
12 | : "${ci_target:=${CROSS_COMPILE%-}}" | 12 | : "${ci_target:=${CROSS_COMPILE%-}}" |
13 | 13 | ||
14 | install_prefix=$(${ci_target}-gcc --print-sysroot)/${ci_target} | ||
15 | |||
16 | case "$ci_buildsys" in | 14 | case "$ci_buildsys" in |
17 | (Makefile) | 15 | (Makefile) |
18 | ./configure --enable-shared --enable-static --enable-wine --cross-prefix=${ci_target}- | 16 | ./configure --enable-shared --enable-static --enable-wine --cross-prefix=${ci_target}- |
@@ -27,7 +25,7 @@ case "$ci_buildsys" in | |||
27 | cd build | 25 | cd build |
28 | cmake \ | 26 | cmake \ |
29 | --no-warn-unused-cli \ | 27 | --no-warn-unused-cli \ |
30 | -DCMAKE_FIND_ROOT_PATH=$install_prefix \ | 28 | -DCMAKE_FIND_ROOT_PATH=$(${ci_target}-gcc --print-sysroot)/${ci_target} \ |
31 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | 29 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
32 | -DCMAKE_C_COMPILER=$(which ${ci_target}-gcc) \ | 30 | -DCMAKE_C_COMPILER=$(which ${ci_target}-gcc) \ |
33 | -DCMAKE_SYSTEM_PROCESSOR=${ci_target%-*-*} \ | 31 | -DCMAKE_SYSTEM_PROCESSOR=${ci_target%-*-*} \ |