editorconfig setup, eclint check in travis

This commit is contained in:
Mathieu Brédif 2017-02-13 00:05:58 +01:00
parent ef5fc167d8
commit e040ff2025
2 changed files with 41 additions and 1 deletions

37
.editorconfig Normal file
View File

@ -0,0 +1,37 @@
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# tab indentation
[**.{c,h,c.in,hpp,cpp}]
indent_style = tab
indent_size = 4
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
[sort_r.h]
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
[**.{sql.in,sql}]
indent_style = tab
indent_size = 4
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
# Matches the exact file .travis.yml
[.travis.yml]
indent_style = space
indent_size = 2

View File

@ -14,7 +14,10 @@ install:
addons:
postgresql: "9.3" # for "installcheck"
before_script: ./autogen.sh
before_script:
- npm install -g eclint
- eclint check * */* */cunit/*
- ./autogen.sh
script:
- ./configure CFLAGS="-Wall -O2 -g" --with-lazperf=/usr/local/