diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 74 |
1 files changed, 65 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index 69ec28f3..c8755e7f 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,13 +1,69 @@ | |||
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; fi |
9 | - LUA_VER=5.1.5 | 44 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3; fi |
10 | - LUA_VER=5.2.4 | 45 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then virtualenv venv -p python3; fi |
11 | - LUA_VER=5.3.1 | 46 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate; fi |
12 | 47 | ||
13 | script: cd test && ./testing.sh --travis --lua $LUA_VER | 48 | - pip install hererocks |
49 | - hererocks lua_install -r^ --$LUA | ||
50 | - export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH | ||
51 | |||
52 | install: | ||
53 | - luarocks install busted | ||
54 | - luarocks install luacov | ||
55 | - luarocks install luacov-coveralls | ||
56 | |||
57 | script: | ||
58 | - busted -Xhelper travis,$LUA --verbose | ||
59 | - busted -Xhelper travis,$LUA,env=full --verbose | ||
60 | |||
61 | after_success: | ||
62 | - luacov-coveralls -c $TRAVIS_BUILD_DIR/test/luacov.config --exclude $TRAVIS_BUILD_DIR/test/ | ||
63 | - $PWD/lua_install/bin/luacov -c $TRAVIS_BUILD_DIR/test/luacov.config | ||
64 | - grep "Summary" -B1 -A1000 $TRAVIS_BUILD_DIR/test/luacov.report.out | ||
65 | |||
66 | notifications: | ||
67 | email: | ||
68 | on_success: change | ||
69 | on_failure: change \ No newline at end of file | ||