diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 71 |
1 files changed, 61 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml index f946bb99..02bdb6c9 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,14 +1,65 @@ | |||
1 | language: c | 1 | language: python |
2 | 2 | ||
3 | compiler: gcc | 3 | matrix: |
4 | include: | ||
5 | - os: linux | ||
6 | env: | ||
7 | - LUA="lua=5.1" | ||
8 | - os: linux | ||
9 | env: | ||
10 | - LUA="lua=5.2" | ||
11 | - os: linux | ||
12 | env: | ||
13 | - LUA="lua=5.3" | ||
14 | - os: linux | ||
15 | env: | ||
16 | - LUA="luajit=2.0" | ||
17 | - os: linux | ||
18 | env: | ||
19 | - LUA="luajit=2.1" | ||
20 | - os: osx | ||
21 | language: generic | ||
22 | env: | ||
23 | - LUA="lua=5.1" | ||
24 | - os: osx | ||
25 | language: generic | ||
26 | env: | ||
27 | - LUA="lua=5.2" | ||
28 | - os: osx | ||
29 | language: generic | ||
30 | env: | ||
31 | - LUA="lua=5.3" | ||
32 | - os: osx | ||
33 | language: generic | ||
34 | env: | ||
35 | - LUA="luajit=2.0" | ||
36 | - os: osx | ||
37 | language: generic | ||
38 | env: | ||
39 | - LUA="luajit=2.1" | ||
4 | 40 | ||
5 | sudo: false | ||
6 | 41 | ||
7 | env: | 42 | before_install: |
8 | matrix: | 43 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install python; fi |
9 | - LUA_VER=5.1.5 | 44 | - pip install hererocks |
10 | - LUA_VER=5.2.4 | 45 | - hererocks lua_install -r^ --$LUA |
11 | - LUA_VER=5.3.1 | 46 | - export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH |
12 | - LUA_VER=jit-2.0.4 | ||
13 | 47 | ||
14 | script: cd test && ./testing.sh --travis --lua $LUA_VER | 48 | install: |
49 | - luarocks install busted | ||
50 | - luarocks install luacov | ||
51 | - luarocks install luacov-coveralls | ||
52 | |||
53 | script: | ||
54 | - busted -Xhelper travis --verbose | ||
55 | - busted -Xhelper travis,env=full --verbose | ||
56 | |||
57 | after_success: | ||
58 | - luacov-coveralls -c $TRAVIS_BUILD_DIR/test/luacov.config --exclude $TRAVIS_BUILD_DIR/test/ | ||
59 | - luacov -c $TRAVIS_BUILD_DIR/test/luacov.config | ||
60 | - grep "Summary" -B1 -A1000 $TRAVIS_BUILD_DIR/test/luacov.report.out | ||
61 | |||
62 | notifications: | ||
63 | email: | ||
64 | on_success: change | ||
65 | on_failure: change | ||