Update editor, formatting and CI files

This commit is contained in:
Denis Blank 2017-09-21 23:29:21 +02:00
parent bd9cf93f74
commit 3809af9092
5 changed files with 76 additions and 4 deletions

View File

@ -2,3 +2,8 @@ BasedOnStyle: LLVM
PointerAlignment: Left PointerAlignment: Left
IndentCaseLabels: true IndentCaseLabels: true
AllowShortFunctionsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
FixNamespaceComments: true

11
.editorconfig Normal file
View File

@ -0,0 +1,11 @@
[*]
charset = utf-8
indent_size = 2
tab_width = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 80
[*.{cpp,hpp}]
charset = latin1

36
.gitattributes vendored Normal file
View File

@ -0,0 +1,36 @@
#sources
*.c text
*.cc text
*.cxx text
*.cpp text
*.c++ text
*.hpp text
*.h text
*.h++ text
*.hh text
# Compiled Object files
*.slo binary
*.lo binary
*.o binary
*.obj binary
# Precompiled Headers
*.gch binary
*.pch binary
# Compiled Dynamic libraries
*.so binary
*.dylib binary
*.dll binary
# Compiled Static libraries
*.lai binary
*.la binary
*.a binary
*.lib binary
# Executables
*.exe binary
*.out binary
*.app binary

4
.gitignore vendored
View File

@ -50,7 +50,3 @@ bld/
doc/doxygen/ doc/doxygen/
format.sh
push.sh
commit.sh
pull.sh

24
appveyor.yml Normal file
View File

@ -0,0 +1,24 @@
image:
- Visual Studio 2017
configuration:
- Debug
platform:
- x64
clone_script:
- cmd: git clone -q --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- cmd: git checkout -qf %APPVEYOR_REPO_COMMIT%
- cmd: git submodule update --init --recursive
before_build:
- cmd: cmake -H. -Bbuild -A%PLATFORM%
build_script:
- cmd: cmake --build build --config %CONFIGURATION% --target ALL_BUILD -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal /maxcpucount:2 /nologo
test_script:
- cmd: cd build
- cmd: ctest -C %CONFIGURATION% -V .