summaryrefslogtreecommitdiff
path: root/.travis/autotools-linux
diff options
context:
space:
mode:
Diffstat (limited to '.travis/autotools-linux')
-rwxr-xr-x.travis/autotools-linux22
1 files changed, 12 insertions, 10 deletions
diff --git a/.travis/autotools-linux b/.travis/autotools-linux
index 96c110ab..ffadcad8 100755
--- a/.travis/autotools-linux
+++ b/.travis/autotools-linux
@@ -1,22 +1,24 @@
1#!/bin/sh 1#!/bin/bash
2 2
3ACTION="$1" 3ACTION="$1"
4 4
5set -eu 5set -eu
6 6
7CACHEDIR="$HOME/cache" 7CACHEDIR="$HOME/cache"
8NPROC=`nproc` 8NPROC=$(nproc)
9 9
10travis_install() { 10travis_install() {
11 # Install vanilla NaCl only. 11 # Install vanilla NaCl only.
12 [ -f "$CACHEDIR/lib/amd64/libnacl.a" ] || { 12 [ -f "$CACHEDIR/lib/amd64/libnacl.a" ] || {
13 curl https://hyperelliptic.org/nacl/nacl-20110221.tar.bz2 | tar jx 13 curl https://hyperelliptic.org/nacl/nacl-20110221.tar.bz2 | tar jx
14 cd nacl-20110221 # pushd 14 cd nacl-20110221 # pushd
15 "./do" 15 "./do"
16 # "make install" 16 # "make install"
17 mkdir -p "$CACHEDIR/include"; mv build/*/include/* "$CACHEDIR/include" 17 mkdir -p "$CACHEDIR/include"
18 mkdir -p "$CACHEDIR/lib" ; mv build/*/lib/* "$CACHEDIR/lib" 18 mv build/*/include/* "$CACHEDIR/include"
19 cd - # popd 19 mkdir -p "$CACHEDIR/lib"
20 mv build/*/lib/* "$CACHEDIR/lib"
21 cd - # popd
20 } 22 }
21} 23}
22 24
@@ -38,11 +40,11 @@ travis_script() {
38 40
39 autoreconf -fi 41 autoreconf -fi
40 mkdir -p _build 42 mkdir -p _build
41 cd _build # pushd 43 cd _build # pushd
42 ../configure $CONFIG_FLAGS || (cat config.log && false) 44 ../configure "${CONFIG_FLAGS[@]}" || (cat config.log && false)
43 make "-j$NPROC" -k CFLAGS="$C_FLAGS" LDFLAGS="$LD_FLAGS" 45 make "-j$NPROC" -k CFLAGS="$C_FLAGS" LDFLAGS="$LD_FLAGS"
44 make -j50 -k distcheck DISTCHECK_CONFIGURE_FLAGS="$CONFIG_FLAGS" || (cat tox-*/_build/build/test-suite.log && false) 46 make -j50 -k distcheck DISTCHECK_CONFIGURE_FLAGS="${CONFIG_FLAGS[*]}" || (cat tox-*/_build/build/test-suite.log && false)
45 cd - # popd 47 cd - # popd
46} 48}
47 49
48if [ "-z" "$ACTION" ]; then 50if [ "-z" "$ACTION" ]; then