xLua - Lua C++ API

Check-in [aa91c06248]
Login
Overview
Comment:Use prebuilt Kyua toolchain if available Attempt to download and unpack a prebuilt Kyua toolchain for Ubuntu 12.04 instead of rebuilding everything from scratch every time. This is to save time during build iterations and also to prevent flaky results due to problems with the dependencies. Also install the built files under /usr/local instead of /usr and make sure all build-time paths are correct.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:aa91c062481877912d19b22ce4bb83539768510af9ae6c374f0c23ee8fe4fe1d
User & Date: jmmv@meroh.net 2014-08-03 22:42:02
Context
2014-08-03
22:42
Send Travis CI notifications to lutok-log check-in: d4da9e7cb9 user: jmmv@meroh.net tags: master, trunk
22:42
Use prebuilt Kyua toolchain if available Attempt to download and unpack a prebuilt Kyua toolchain for Ubuntu 12.04 instead of rebuilding everything from scratch every time. This is to save time during build iterations and also to prevent flaky results due to problems with the dependencies. Also install the built files under /usr/local instead of /usr and make sure all build-time paths are correct. check-in: aa91c06248 user: jmmv@meroh.net tags: master, trunk
20:01
Improvements to the Travis scripts Add missing license headers and attempt both root and non-root builds. check-in: 935e7012db user: julio@meroh.net tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to admin/travis-build.sh.

25
26
27
28
29
30
31



32

33
34
35
36
37
38
39
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

set -e -x




autoreconf -i -s

./configure

if [ "${AS_ROOT:-no}" = yes ]; then
    sudo make distcheck
else
    make distcheck
fi







>
>
>
|
>







25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

set -e -x

if [ -d /usr/local/share/aclocal ]; then
    autoreconf -isv -I/usr/local/share/aclocal
else
    autoreconf -isv
fi
./configure

if [ "${AS_ROOT:-no}" = yes ]; then
    sudo make distcheck
else
    make distcheck
fi

Changes to admin/travis-install-deps.sh.

44
45
46
47
48
49
50
51
52
53



54
55
56
57

58









59
60
61
62

    wget --no-check-certificate \
        "${baseurl}/releases/download/${distname}/${distname}.tar.gz"
    tar -xzvf "${distname}.tar.gz"

    cd "${distname}"
    ./configure \
        --disable-developer \
        --prefix=/usr \
        --without-atf \
        --without-doxygen



    make
    sudo make install
    cd -
}











install_from_github atf atf 0.20
install_from_github lutok lutok 0.4
install_from_github kyua kyua-testers 0.2
install_from_github kyua kyua-cli 0.8








<

|
>
>
>



|
>
|
>
>
>
>
>
>
>
>
>
|
|
|
|
>
44
45
46
47
48
49
50

51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
    wget --no-check-certificate \
        "${baseurl}/releases/download/${distname}/${distname}.tar.gz"
    tar -xzvf "${distname}.tar.gz"

    cd "${distname}"
    ./configure \
        --disable-developer \

        --without-atf \
        --without-doxygen \
        CPPFLAGS="-I/usr/local/include" \
        LDFLAGS="-L/usr/local/lib -Wl,-R/usr/local/lib" \
        PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
    make
    sudo make install
    cd -

    rm -rf "${distname}" "${distname}.tar.gz"
}

install_from_bintray() {
    local name="20140803-usr-local-kyua-ubuntu-12-04-amd64-${CC:-gcc}.tar.gz"
    wget "http://dl.bintray.com/jmmv/kyua/${name}" || return 1
    sudo tar -xzvp -C / -f "${name}"
    rm -f "${name}"
}

if ! install_from_bintray; then
    install_from_github atf atf 0.20
    install_from_github lutok lutok 0.4
    install_from_github kyua kyua-testers 0.2
    install_from_github kyua kyua-cli 0.8
fi