language: c

env:
  global:
    - LUAROCKS=2.2.0beta1
  matrix:
    - LUA=lua5.1
    - LUA=lua5.2
    - LUA=luajit

branches:
  only:
    - master

before_install:
  - bash .travis/setup_lua.sh
  - sudo luarocks install luafilesystem
  - if [ $LUA = "luajit" ]; then
      sudo luarocks install https://raw.github.com/justincormack/ljsyscall/master/rockspec/ljsyscall-scm-1.rockspec;
    fi

install:
  - sudo luarocks make rockspecs/lua-path-scm-0.rockspec
  - sudo luarocks install luacov-coveralls --server=http://rocks.moonscript.org/dev
  - sudo luarocks install https://raw.github.com/moteus/lunit/moteus-skip/rockspecs/lunitx-scm.mot.skip-0.rockspec

script:
  - cd test
  - lunit.sh run.lua
  - lua -lluacov test_lfs.lua

after_success:
  - luacov-coveralls

notifications:
  email:
    on_success: change
    on_failure: always
language: c

env:
  global:
    - LUAROCKS=2.2.0beta1
  matrix:
    - LUA=lua5.1
    - LUA=lua5.2
    - LUA=luajit

branches:
  only:
    - master

before_install:
  - bash .travis/setup_lua.sh
  - sudo luarocks install luafilesystem
  - if [ $LUA = "luajit" ]; then
      sudo luarocks install ljsyscall;
    fi

install:
  - sudo luarocks make rockspecs/lua-path-scm-0.rockspec
  - sudo luarocks install luacov-coveralls --server=http://rocks.moonscript.org/dev
  - sudo luarocks install https://raw.github.com/moteus/lunit/moteus-skip/rockspecs/lunitx-scm.mot.skip-0.rockspec

script:
  - cd test
  - lunit.sh run.lua
  - lua -lluacov test_lfs.lua

after_success:
  - luacov-coveralls

notifications:
  email:
    on_success: change
    on_failure: always

Use stable release of ljsyscall on Travis
Use stable release of ljsyscall on Travis