language: python
sudo: false

env:
  - LUA="lua=5.1"
  - LUA="lua=5.2"
  - LUA="lua=5.3"

before_install:
  - pip install hererocks
  - hererocks bin/lua_install -r^ --$LUA
  - export PATH=$PATH:$PWD/bin/lua_install/bin

install:
  - luarocks install busted

before_script:
  - bin/fetch-configlet
  - bin/configlet .

script:
  - bin/test-all

# Primary target is Lua 5.3, but the results in Lua 5.1 and 5.2 are provided for
# curiosity's sake
matrix:
  allow_failures:
    - env: LUA="lua=5.1"
    - env: LUA="lua=5.2"

language: python
sudo: false

env:
  - LUA="lua=5.1"
  - LUA="lua=5.2"
  - LUA="lua=5.3"

before_install:
  - pip install hererocks
  - hererocks bin/lua_install -r^ --$LUA
  - export PATH=$PATH:$PWD/bin/lua_install/bin

install:
  - luarocks install busted

before_script:
  - bin/fetch-configlet
  - bin/configlet lint .

script:
  - bin/test-all

# Primary target is Lua 5.3, but the results in Lua 5.1 and 5.2 are provided for
# curiosity's sake
matrix:
  allow_failures:
    - env: LUA="lua=5.1"
    - env: LUA="lua=5.2"

Call configlet subcommand on CI
Call configlet subcommand on CI

This changes configlet to pass a subcommand.

For now, we've released a version of configlet which handles both the old command:

    configlet path/to/track

as well as the new command:

    configlet lint path/to/track

This will let us update all the travis files to include the subcommand before we
release the version of configlet that requires the subcommand.
