-
Notifications
You must be signed in to change notification settings - Fork 294
/
.travis.yml
43 lines (34 loc) · 1.05 KB
/
.travis.yml
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
language: python
sudo: false
env:
# - LUA="lua=5.1" # Recommended version for polling mode
- LUA="luajit=2.1" # Recommended version for webhooks mode
# - LUA="lua=5.2"
# - LUA="lua=5.3"
# - LUA="luajit 2.0"
before_install:
- pip install hererocks
- hererocks lua_install -r^ --$LUA
- export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH
install:
- luarocks install luacheck
- luarocks install busted
- luarocks install luacov
- luarocks install luacov-coveralls
- luarocks install telegram-bot-api
- luarocks install lua-resty-socket
services:
- redis-server
before_script: redis-cli ping
script:
- luacheck . --exclude-files lua/vendor lua_install
- busted --coverage --lpath "./lua/?.lua;./lua/?/?.lua;./lua/?/init.lua;./lua/vendor/?.lua;./lua/vendor/?/?.lua"
after_success:
- luacov-coveralls --exclude lua/vendor --exclude lua_install
# matrix:
# allow_failures:
# - env: LUA="lua=5.2" LUA="lua=5.3" LUA="luajit 2.0"
notifications:
email:
on_success: change
on_failure: always