Debug in-container builds
[platform/upstream/libffi.git] / .travis / build-in-container.sh
1 #!/bin/bash
2
3 set -x
4
5 echo ===============================================================
6 env
7 echo ===============================================================
8
9 cd /opt
10
11 export QEMU_LD_PREFIX=/usr/${HOST}
12
13 ./configure ${HOST+--host=$HOST --disable-shared}
14 make
15 make dist
16 make check RUNTESTFLAGS="-a $RUNTESTFLAGS"
17 EXITCODE=$?
18 gzip -c -9 */testsuite/libffi.log > libffi.log.gz
19 echo ================================================================
20 echo The logs are too long for travis to handle, so we compress and
21 echo uuencode them.  Download, decode and uncompress if you need to
22 echo read them.
23 echo ================================================================
24 uuencode libffi.log.gz -
25 echo ================================================================
26 echo ================================================================
27 exit $EXITCODE
28