aboutsummaryrefslogtreecommitdiff
path: root/scripts/travis
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/travis')
-rwxr-xr-xscripts/travis28
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
2set -e
3
4./autogen.sh
5
6if [ "x$ARCH" = "xnative" ]; then
7 ./configure --enable-libtls
8 make clean
9 make -j distcheck
10else
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
28fi