language: objective-c
osx_image: xcode7.3
xcode_project: 'xcodeProject/ObjectiveC.xcodeproj'
xcode_scheme: 'xobjectivecTest'
before_install:
  - gem install bundler
  - gem install danger
  - brew cask uninstall oclint
  - brew tap oclint/formulae
  - brew install oclint
script:
  - bin/fetch-configlet
  - bin/configlet .
  - xctool test -project 'xcodeProject/ObjectiveC.xcodeproj' -scheme 'xobjectivecTest' -sdk macosx10.11 -reporter json-compilation-database:compile_commands.json -reporter plain:plain-output.txt -reporter pretty

after_success:
  - tail -3 plain-output.txt >> lastline.txt
  - oclint-json-compilation-database -- -rc LONG_LINE=200 -disable-rule UselessParentheses -disable-rule ConstantConditionalOperator -disable-rule DoubleNegative -disable-rule MultipleUnaryOperator -max-priority-1=100000 -max-priority-2=100000 -max-priority-3=100000 -report-type json -o .oclint.json
  - danger
  - ls -al
  - cat lastline.txt
  - python -m json.tool .oclint.json

language: objective-c
osx_image: xcode7.3
xcode_project: 'xcodeProject/ObjectiveC.xcodeproj'
xcode_scheme: 'xobjectivecTest'
before_install:
  - gem install bundler
  - gem install danger
  - brew cask uninstall oclint
  - brew tap oclint/formulae
  - brew install oclint
script:
  - bin/fetch-configlet
  - bin/configlet lint .
  - xctool test -project 'xcodeProject/ObjectiveC.xcodeproj' -scheme 'xobjectivecTest' -sdk macosx10.11 -reporter json-compilation-database:compile_commands.json -reporter plain:plain-output.txt -reporter pretty

after_success:
  - tail -3 plain-output.txt >> lastline.txt
  - oclint-json-compilation-database -- -rc LONG_LINE=200 -disable-rule UselessParentheses -disable-rule ConstantConditionalOperator -disable-rule DoubleNegative -disable-rule MultipleUnaryOperator -max-priority-1=100000 -max-priority-2=100000 -max-priority-3=100000 -report-type json -o .oclint.json
  - danger
  - ls -al
  - cat lastline.txt
  - python -m json.tool .oclint.json

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.
