diff options
author | Daiki Ueno <dueno@redhat.com> | 2017-02-15 17:35:07 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2017-02-16 16:17:14 +0100 |
commit | 5442b1cfa13da9307cc38a8fd289a67a05fe26ad (patch) | |
tree | c5e3921a6961d0faf68095091e254b2d984a39b5 | |
parent | 98f02ef5ebf6966af4937dd2f730d808f13d8a1c (diff) |
travis: Enable mingw64 cross build
-rw-r--r-- | .travis.yml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml index 3698a48..33742a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,14 @@ sudo: required language: c env: - - BUILD_OPTS= - - BUILD_OPTS="CFLAGS='-fsanitize=address -g -fno-common -U_FORTIFY_SOURCE' CXXFLAGS='-fsanitize=address -g -fno-common -U_FORTIFY_SOURCE' LDFLAGS='-fsanitize=address -g -fno-common -U_FORTIFY_SOURCE' LIBS='-ldl -lpthread' - - BUILD_OPTS="CFLAGS='-fsanitize=undefined -g -fno-common -U_FORTIFY_SOURCE' CXXFLAGS='-fsanitize=undefined -g -fno-common -U_FORTIFY_SOURCE' LDFLAGS='-fsanitize=undefined -g -fno-common -U_FORTIFY_SOURCE' LIBS='-ldl -lpthread' + - BUILD_OPTS="--prefix=/usr --libdir=/usr/lib64" + - BUILD_OPTS="--prefix=/usr --libdir=/usr/lib64 CFLAGS='-fsanitize=address -g -fno-common -U_FORTIFY_SOURCE' CXXFLAGS='-fsanitize=address -g -fno-common -U_FORTIFY_SOURCE' LDFLAGS='-fsanitize=address -g -fno-common -U_FORTIFY_SOURCE' LIBS='-ldl -lpthread'" + - BUILD_OPTS="--prefix=/usr --libdir=/usr/lib64 CFLAGS='-fsanitize=undefined -g -fno-common -U_FORTIFY_SOURCE' CXXFLAGS='-fsanitize=undefined -g -fno-common -U_FORTIFY_SOURCE' LDFLAGS='-fsanitize=undefined -g -fno-common -U_FORTIFY_SOURCE' LIBS='-ldl -lpthread'" + - BUILD_OPTS="-host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32 --without-libffi" TESTS_ENVIRONMENT="wine" + +matrix: + allow_failures: + - env: BUILD_OPTS="-host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32 --without-libffi" TESTS_ENVIRONMENT="wine" services: - docker @@ -17,6 +22,7 @@ before_install: - docker exec $CONTAINER dnf -y builddep p11-kit - docker exec $CONTAINER dnf -y install gettext-devel libtool make - docker exec $CONTAINER dnf -y install libasan libubsan + - docker exec $CONTAINER dnf -y install mingw64-gcc mingw64-libffi mingw64-libtasn1 wine - docker exec $CONTAINER useradd user - docker exec $CONTAINER mkdir /builddir - docker exec $CONTAINER chown -R user /builddir @@ -29,5 +35,5 @@ install: script: - docker exec $CONTAINER sh -c "cd /srcdir && NOCONFIGURE=1 ./autogen.sh" - - docker exec $CONTAINER su - user sh -c "cd /builddir && ../srcdir/configure --prefix=/usr --libdir=/usr/lib64 --enable-strict CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"$LIBS\"" - - docker exec $CONTAINER su - user sh -c "cd /builddir && make V=1 && make check V=1" + - docker exec $CONTAINER su - user sh -c "cd /builddir && ../srcdir/configure --enable-strict $BUILD_OPTS" + - docker exec $CONTAINER su - user sh -c "cd /builddir && make V=1 && make check V=1 TESTS_ENVIRONMENT=\"$TESTS_ENVIRONMENT\"" |