-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
41 lines (33 loc) · 876 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
34
35
36
37
38
39
40
41
language: python
sudo: false
env:
- LUA="lua=5.3" FMT=""
- LUA="lua=5.1" FMT="lcf"
- LUA="lua=5.1" FMT="formatter"
- LUA="lua=5.2" FMT=""
- LUA="lua=5.3" FMT=""
- LUA="lua=5.3" FMT="lcf"
- LUA="luajit=2.1" FMT=""
cache:
directories:
- lua_install
before_install:
- pip install hererocks
- hererocks lua_install -r^ --$LUA
- export PATH=$PWD/lua_install/bin:$PATH # Add directory with all installed binaries to PATH
install:
- luarocks install --only-deps spec/test-scm-0.rockspec
- luarocks install --only-deps lua-lsp-scm-1.rockspec
- luarocks install $FMT || true
script:
- luacheck -ur .
- busted --verbose --coverage
after_success:
- "luacov-coveralls --include '^%./lua%-lsp' --exclude '^%./lua%-lsp/lua%-parser'"
branches:
except:
- gh-pages
notifications:
email:
on_success: change
on_failure: always