-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
22 lines (21 loc) · 983 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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