File: .travis.yml

package info (click to toggle)
luacheck 0.17.1-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 968 kB
  • ctags: 731
  • sloc: python: 35; makefile: 18
file content (39 lines) | stat: -rw-r--r-- 1,325 bytes parent folder | download
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
language: c
sudo: false

cache:
  directories: here

matrix:
  include:
    - compiler: ": Lua51"
      env: LUA="lua 5.1"
    - compiler: ": Lua52"
      env: LUA="lua 5.2"
    - compiler: ": Lua53"
      env: LUA="lua 5.3"
    - compiler: ": LuaJIT20"
      env: LUA="luajit 2.0"
    - compiler: ": LuaJIT21"
      env: LUA="luajit 2.1"

install:
  - pip install --user hererocks
  - hererocks here --$LUA -r https://github.com/mpeterv/luarocks@upgrade-install
  - export PATH="$PWD/here/bin:$PATH"
  - luarocks install lanes --upgrade --upgrade-deps
  - luarocks install busted --upgrade --upgrade-deps
  - luarocks install cluacov --upgrade --upgrade-deps
  - luarocks install luacov-coveralls --upgrade --upgrade-deps

script:
  - busted -c
  - lua -e 'package.path="./src/?.lua;./src/?/init.lua;"..package.path' -lluacov bin/luacheck.lua luacheck-scm-1.rockspec -j2
  - lua -e 'package.preload.lfs=error;package.path="./src/?.lua;./src/?/init.lua;"..package.path' -lluacov bin/luacheck.lua spec | grep 'I/O error'
  - lua -e 'package.preload.lanes=error;package.path="./src/?.lua;./src/?/init.lua;"..package.path' -lluacov bin/luacheck.lua --version | grep 'Not found'
  - lua install.lua path/to/luacheck
  - mv src src2
  - path/to/luacheck/bin/luacheck spec/*.lua
  - mv src2 src

after_success: luacov-coveralls -v