forked from knyar/nginx-lua-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
33 lines (27 loc) · 860 Bytes
/
.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
# Stolen from https://github.com/daurnimator/luatz/blob/master/.travis.yml
language: python
sudo: false
env:
matrix:
- LUA="lua 5.1"
- LUA="lua 5.2"
- LUA="lua 5.3"
before_install:
- pip install hererocks
- hererocks here -r^ --$LUA # Install latest LuaRocks version
# plus the Lua version for this build job
# into 'here' subdirectory
- export PATH=$PATH:$PWD/here/bin # Add directory with all installed binaries to PATH
- eval `luarocks path --bin`
- luarocks install luacheck
- luarocks install luacov-coveralls
- luarocks install luaunit
script:
- luacheck --globals ngx -- prometheus.lua
- lua -lluacov prometheus_test.lua
after_success:
- luacov-coveralls --include %./prometheus.lua
notifications:
email:
on_success: change
on_failure: always