update travis-ci build to check mingw32/64 targets
This commit is contained in:
parent
9909bd7aa5
commit
dd7ed132ee
28
.travis.yml
28
.travis.yml
@ -5,4 +5,30 @@ compiler:
|
|||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
script: "./dist.sh"
|
env:
|
||||||
|
- ARCH=native
|
||||||
|
- ARCH=mingw32
|
||||||
|
- ARCH=mingw64
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- compiler: clang
|
||||||
|
os: osx
|
||||||
|
env: ARCH=native
|
||||||
|
- compiler: gcc
|
||||||
|
os: osx
|
||||||
|
env: ARCH=native
|
||||||
|
- compiler: clang
|
||||||
|
os: linux
|
||||||
|
env: ARCH=native
|
||||||
|
- compiler: gcc
|
||||||
|
os: linux
|
||||||
|
env: ARCH=native
|
||||||
|
- compiler: gcc
|
||||||
|
os: linux
|
||||||
|
env: ARCH=mingw32
|
||||||
|
- compiler: gcc
|
||||||
|
os: linux
|
||||||
|
env: ARCH=mingw64
|
||||||
|
|
||||||
|
script:
|
||||||
|
"./scripts/travis"
|
||||||
|
28
scripts/travis
Executable file
28
scripts/travis
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
|
||||||
|
if [ "x$ARCH" = "xnative" ]; then
|
||||||
|
./configure --enable-libtls
|
||||||
|
make clean
|
||||||
|
make -j distcheck
|
||||||
|
else
|
||||||
|
CPU=i686
|
||||||
|
if [ "x$ARCH" = "xmingw64" ]; then
|
||||||
|
CPU=x86_64
|
||||||
|
fi
|
||||||
|
export CC=$CPU-w64-mingw32-gcc
|
||||||
|
|
||||||
|
if [ -z $(which $CC) ]; then
|
||||||
|
# Update Ubuntu 12.04 with current mingw toolchain
|
||||||
|
apt-get update && apt-get install -y python-software-properties
|
||||||
|
apt-add-repository -y ppa:tobydox/mingw-x-precise
|
||||||
|
apt-get update && apt-get install -y $ARCH-x-gcc make
|
||||||
|
export PATH=$PATH:/opt/$ARCH/bin
|
||||||
|
fi
|
||||||
|
|
||||||
|
./configure --host=$CPU-w64-mingw32 --enable-libtls
|
||||||
|
make clean
|
||||||
|
make -j
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user