travis-ci test mingw/win32 dll/static builds

This commit is contained in:
Michael Davidsaver
2017-07-03 17:56:19 +02:00
parent bef616632c
commit 904ee7dfec
3 changed files with 27 additions and 3 deletions

View File

@@ -10,16 +10,17 @@ addons:
- libncurses5-dev
- perl
- clang
- g++-mingw-w64-i686
install:
- ./ci/travis-prepare.sh
script:
- make -j2
- make tapfiles
- find . -name '*.tap' -print0 | xargs -0 -n1 prove -e cat -f
- ./ci/travis-build.sh
env:
- BRBASE=3.16
- BRBASE=3.16 CMPLR=clang
- BRBASE=3.16 USR_CXXFLAGS=-std=c++11
- BRBASE=3.16 USR_CXXFLAGS=-std=c++11 CMPLR=clang
- BRBASE=3.16 WINE=32 TEST=NO STATIC=YES
- BRBASE=3.16 WINE=32 TEST=NO STATIC=NO
- BRBASE=3.15
- BRBASE=3.14

10
ci/travis-build.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
set -e -x
make -j2
if [ "$TEST" != "NO" ]
then
make tapfiles
find . -name '*.tap' -print0 | xargs -0 -n1 prove -e cat -f
fi

View File

@@ -13,6 +13,19 @@ git clone --quiet --depth 5 --branch "$BRBASE" https://github.com/${REPOBASE:-ep
EPICS_HOST_ARCH=`sh epics-base/startup/EpicsHostArch`
# requires wine and g++-mingw-w64-i686
if [ "$WINE" = "32" ]
then
echo "Cross mingw32"
sed -i -e '/CMPLR_PREFIX/d' epics-base/configure/os/CONFIG_SITE.linux-x86.win32-x86-mingw
cat << EOF >> configure/os/CONFIG_SITE.linux-x86.win32-x86-mingw
CMPLR_PREFIX=i686-w64-mingw32-
EOF
cat << EOF >> epics-base/configure/CONFIG_SITE
CROSS_COMPILER_TARGET_ARCHS+=win32-x86-mingw
EOF
fi
case "$CMPLR" in
clang)
echo "Host compiler is clang"