summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorrobooo <robo.karasek@gmail.com>2016-07-07 21:58:19 +0200
committerHisham Muhammad <hisham@gobolinux.org>2016-07-07 16:58:19 -0300
commit5af7e0d7c2dcf65e41ae8523f3771e9528be32a7 (patch)
treebcd14624e0566a23da2e708675197d212cecf35d /.travis.yml
parentb5b285a678fe78b80d452cc9eb7565b8bf087b81 (diff)
downloadluarocks-5af7e0d7c2dcf65e41ae8523f3771e9528be32a7.tar.gz
luarocks-5af7e0d7c2dcf65e41ae8523f3771e9528be32a7.tar.bz2
luarocks-5af7e0d7c2dcf65e41ae8523f3771e9528be32a7.zip
New test-suite for LuaRocks (#581)
First version of new test-suite, using Busted framework based on Google Summer of Code project: https://summerofcode.withgoogle.com/projects/#5695811874717696 * Rewritten from Bash to Lua * Tests now check if they did what they were supposed to, beyond only checking success or failure of the `luarocks` command * Support for black-box (launching `luarocks` as an external command) and white-box (testing functions in modules directly) testing
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml74
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 @@
1language: c 1language: python
2 2
3compiler: gcc 3matrix:
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
5sudo: false
6 41
7env: 42before_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
13script: 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
52install:
53 - luarocks install busted
54 - luarocks install luacov
55 - luarocks install luacov-coveralls
56
57script:
58 - busted -Xhelper travis,$LUA --verbose
59 - busted -Xhelper travis,$LUA,env=full --verbose
60
61after_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
66notifications:
67 email:
68 on_success: change
69 on_failure: change \ No newline at end of file