blob: 9e9c10a0d9fc0ebf1dbd372a46d3d40ad02886cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#
# LuaDist Travis-CI Hook
#
# We assume C build environments
language: C
# Try using multiple Lua Implementations
env:
- TOOL="gcc" # Use native compiler (GCC usually)
- TOOL="clang" # Use clang
- TOOL="i686-w64-mingw32" # 32bit MinGW
- TOOL="x86_64-w64-mingw32" # 64bit MinGW
- TOOL="arm-linux-gnueabihf" # ARM hard-float (hf), linux
# Crosscompile builds may fail
matrix:
allow_failures:
- env: TOOL="i686-w64-mingw32"
- env: TOOL="x86_64-w64-mingw32"
- env: TOOL="arm-linux-gnueabihf"
# Install dependencies
install:
- git clone git://github.com/LuaDist/Tools.git ~/_tools
- ~/_tools/travis/travis install
# Bootstap
before_script:
- ~/_tools/travis/travis bootstrap
# Build the module
script:
# - ~/_tools/travis/travis build
- ~/luadist _test install lua-5.1.5 -binary=false -verbose -DCMAKE_TOOLCHAIN_FILE=$TOOLFILE
- ~/luadist _test make . -binary=false -verbose -DCMAKE_TOOLCHAIN_FILE=$TOOLFILE
- cd _test/share/lua-llthreads2-compat/test
- $TRAVIS_BUILD_DIR/_test/bin/lua test_table_copy.lua
- $TRAVIS_BUILD_DIR/_test/bin/lua test_threads.lua
- $TRAVIS_BUILD_DIR/_test/bin/lua test_llthreads.lua
- $TRAVIS_BUILD_DIR/_test/bin/lua test_join_timeout.lua
- $TRAVIS_BUILD_DIR/_test/bin/lua test_join_detach.lua
- $TRAVIS_BUILD_DIR/_test/bin/lua test_join_error.lua
- $TRAVIS_BUILD_DIR/_test/bin/lua test_register_ffi.lua
- $TRAVIS_BUILD_DIR/_test/bin/lua test_logger.lua
- $TRAVIS_BUILD_DIR/_test/bin/lua test_pass_cfunction.lua
- $TRAVIS_BUILD_DIR/_test/bin/lua test_alive.lua
# Execute additional tests or commands
after_script:
- cd $TRAVIS_BUILD_DIR
- ~/_tools/travis/travis test
# Only watch the master branch
branches:
only:
- dist-llthreads2-compat
# Notify the LuaDist Dev group if needed
notifications:
recipients:
- luadist-dev@googlegroups.com
email:
on_success: change
on_failure: always
|