forked from Alloyed/lua-lsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (35 loc) · 1.01 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
env:
- LUA="lua=5.1" FMT="" JSON=""
- LUA="lua=5.1" FMT="lcf" JSON=""
- LUA="lua=5.1" FMT="formatter" JSON=""
- LUA="lua=5.2" FMT="" JSON=""
- LUA="lua=5.3" FMT="" JSON=""
- LUA="lua=5.3" FMT="lcf" JSON=""
- LUA="lua=5.4" FMT="" JSON=""
- LUA="luajit=2.1" FMT="" JSON=""
- LUA="luajit=2.1" FMT="" JSON="lua-cjson"
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-0.rockspec
- luarocks install $FMT || true
- luarocks install $JSON || 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