diff options
| author | Brent Cook <busterb@gmail.com> | 2015-01-31 22:13:19 -0600 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2015-01-31 22:13:19 -0600 |
| commit | dd7ed132ee4e8f25ea02f4df88ec9545b8d6ebae (patch) | |
| tree | 911af89fea1718304cd3b37bbcdd6540ebcf9fe3 /scripts | |
| parent | 9909bd7aa5a0f93dd65b4ba557c906120fd64609 (diff) | |
| download | portable-dd7ed132ee4e8f25ea02f4df88ec9545b8d6ebae.tar.gz portable-dd7ed132ee4e8f25ea02f4df88ec9545b8d6ebae.tar.bz2 portable-dd7ed132ee4e8f25ea02f4df88ec9545b8d6ebae.zip | |
update travis-ci build to check mingw32/64 targets
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/travis | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/travis b/scripts/travis new file mode 100755 index 0000000..4d28782 --- /dev/null +++ b/scripts/travis | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | set -e | ||
| 3 | |||
| 4 | ./autogen.sh | ||
| 5 | |||
| 6 | if [ "x$ARCH" = "xnative" ]; then | ||
| 7 | ./configure --enable-libtls | ||
| 8 | make clean | ||
| 9 | make -j distcheck | ||
| 10 | else | ||
| 11 | CPU=i686 | ||
| 12 | if [ "x$ARCH" = "xmingw64" ]; then | ||
| 13 | CPU=x86_64 | ||
| 14 | fi | ||
| 15 | export CC=$CPU-w64-mingw32-gcc | ||
| 16 | |||
| 17 | if [ -z $(which $CC) ]; then | ||
| 18 | # Update Ubuntu 12.04 with current mingw toolchain | ||
| 19 | apt-get update && apt-get install -y python-software-properties | ||
| 20 | apt-add-repository -y ppa:tobydox/mingw-x-precise | ||
| 21 | apt-get update && apt-get install -y $ARCH-x-gcc make | ||
| 22 | export PATH=$PATH:/opt/$ARCH/bin | ||
| 23 | fi | ||
| 24 | |||
| 25 | ./configure --host=$CPU-w64-mingw32 --enable-libtls | ||
| 26 | make clean | ||
| 27 | make -j | ||
| 28 | fi | ||
