From cab22adadfd5d0ea3f5acf4e81b09aeecde15777 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse Date: Wed, 14 Nov 2018 09:25:57 +0100 Subject: [PATCH 1/2] Push changes to .clang-format to Common --- .travis.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c99645b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: bash +script: + echo "Nothing to do" +after_success: | + set -e + curl -L https://github.com/github/hub/releases/download/v2.6.0/hub-linux-amd64-2.6.0.tgz | tar xzv + cp hub-linux-amd64-2.6.0/bin/hub /bin/hub + which hub + MESSAGE="Align Clang Format to upstream" + REPOS=Common + ORG=${TRAVIS_REPO_SLUG%%/*} + for REPO in $REPOS; do + git clone git://github.com/$ORG/$REPO + cp .clang-format $REPO + pushd $REPO + git remote + git config user.email ${TRAVIS_SECURE_EMAIL} + git config user.name ${TRAVIS_SECURE_USER} + git add .clang-format + git commit -m "${MESSAGE}" + git push "https://${TRAVIS_SECURE_TOKEN_NAME}@github.com/$ORG/$REPO" HEAD:refs/heads/coding-guidelines-update > /dev/null 2>&1 + hub pr -h coding-guidelines-update -b master -m "Coding Guidelines update of $(date +%Y-%m-%d)" + popd + done From df8eb31ded1c79eb4bc956c014137be6116736b9 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse Date: Mon, 10 Dec 2018 10:28:00 +0100 Subject: [PATCH 2/2] Fix --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index bfaedf0..d2c8a4e 100644 --- a/.clang-format +++ b/.clang-format @@ -9,7 +9,7 @@ AllowShortLoopsOnASingleLine: false #AlwaysBreakBeforeMultilineStrings: true AlwaysBreakTemplateDeclarations: true BinPackParameters: true -BreakBeforeBinaryOperators: false +BreakBeforeBinaryOperators: true BreakBeforeBraces: Linux BreakBeforeTernaryOperators: true BreakConstructorInitializersBeforeComma: false