-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
31 lines (26 loc) · 969 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
language: python
sudo: true
env:
- LUA="lua=5.1" COMPAT="default" CJSON_VERSION="2.1.0"
- LUA="lua=5.2" COMPAT="default" CJSON_VERSION="2.1.0"
- LUA="lua=5.3" COMPAT="all" CJSON_VERSION="2.1.0"
- LUA="luajit=2.0" COMPAT="default" CJSON_VERSION="2.1.0"
- LUA="luajit=2.1" COMPAT="default" CJSON_VERSION="2.1.0.6"
before_install:
- pip install hererocks
- hererocks lua_install -r^ --$LUA --compat=$COMPAT
- export PATH=$PATH:$PWD/lua_install/bin
install:
- luarocks install libsodium
- luarocks install luacheck
- luarocks install busted
- luarocks install luacov
- luarocks install luacov-coveralls
- luarocks install lua-cjson $CJSON_VERSION
- luarocks make
script:
- luacheck --std max+busted --no-max-line-length paseto spec
- busted --verbose --coverage
after_success:
- EXCLUDE_DIR=`echo $TRAVIS_BUILD_DIR/lua_install | sed 's/-/%-/g'`
- luacov-coveralls --exclude $EXCLUDE_DIR