From 3cddb7b9a1df284dfca0b41eb171e4c0b6d8f5d9 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sat, 12 Dec 2020 01:02:47 +0100 Subject: Run Travis tests also under i586-mingw32msvc-gcc compiler Beware that i586-mingw32msvc-gcc is sometimes just a symlink to i686-w64-mingw32-gcc. Real i586-mingw32msvc-gcc compiler is available in mingw32 package only in dist trusty. --- .travis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4df8ce7..ebc6834 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,5 +15,18 @@ env: - ci_buildsys=cmake - ci_buildsys=Makefile +jobs: + include: + - dist: trusty + compiler: i586-mingw32msvc-gcc + addons: + apt: + packages: + - mingw32 + - wine + env: ci_buildsys=Makefile + # Check that we have a real i586-mingw32msvc-gcc compiler as sometimes it is just a symlink to i686-w64-mingw32-gcc + before_script: "i586-mingw32msvc-gcc -v 2>&1 | grep -q -x 'Target: i586-mingw32msvc'" + script: - ci_target=${CC%-*} ./tools/ci-build.sh -- cgit v1.2.3-55-g6feb From 22020637d7a59dbc983f3e2751f71acf19891802 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sat, 12 Dec 2020 02:47:24 +0100 Subject: ci-build.sh: Move install_prefix to cmake place where it is used --- tools/ci-build.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 # target to build for : "${ci_target:=${CROSS_COMPILE%-}}" -install_prefix=$(${ci_target}-gcc --print-sysroot)/${ci_target} - case "$ci_buildsys" in (Makefile) ./configure --enable-shared --enable-static --enable-wine --cross-prefix=${ci_target}- @@ -27,7 +25,7 @@ case "$ci_buildsys" in cd build cmake \ --no-warn-unused-cli \ - -DCMAKE_FIND_ROOT_PATH=$install_prefix \ + -DCMAKE_FIND_ROOT_PATH=$(${ci_target}-gcc --print-sysroot)/${ci_target} \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_C_COMPILER=$(which ${ci_target}-gcc) \ -DCMAKE_SYSTEM_PROCESSOR=${ci_target%-*-*} \ -- cgit v1.2.3-55-g6feb