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