From 3809af90928870410f350e87f235259391a468b7 Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Thu, 21 Sep 2017 23:29:21 +0200 Subject: [PATCH] Update editor, formatting and CI files --- .clang-format | 5 +++++ .editorconfig | 11 +++++++++++ .gitattributes | 36 ++++++++++++++++++++++++++++++++++++ .gitignore | 4 ---- appveyor.yml | 24 ++++++++++++++++++++++++ 5 files changed, 76 insertions(+), 4 deletions(-) create mode 100644 .editorconfig create mode 100644 .gitattributes create mode 100644 appveyor.yml diff --git a/.clang-format b/.clang-format index 64c125b..8225649 100644 --- a/.clang-format +++ b/.clang-format @@ -2,3 +2,8 @@ BasedOnStyle: LLVM PointerAlignment: Left IndentCaseLabels: true +AllowShortFunctionsOnASingleLine: false +AllowShortCaseLabelsOnASingleLine: false +AlwaysBreakTemplateDeclarations: true +BinPackArguments: true +FixNamespaceComments: true diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a148dfe --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..97cd487 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore index 763e082..6954b64 100644 --- a/.gitignore +++ b/.gitignore @@ -50,7 +50,3 @@ bld/ doc/doxygen/ -format.sh -push.sh -commit.sh -pull.sh diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..f7ed845 --- /dev/null +++ b/appveyor.yml @@ -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 .