Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 05d4f9f

Browse files
committed
Squashed 'c-sdk-common/' content from commit 0b7ed7f2
git-subtree-dir: c-sdk-common git-subtree-split: 0b7ed7f25eeac75a3decacdf79a6041688fba954
0 parents  commit 05d4f9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+12788
-0
lines changed

.circleci/config.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
version: 2.1
2+
3+
orbs:
4+
win: circleci/windows@1.0.0
5+
6+
workflows:
7+
version: 2
8+
build_and_test_all:
9+
jobs:
10+
- build-test-linux
11+
- build-test-osx
12+
- build-test-windows
13+
14+
jobs:
15+
build-test-linux:
16+
docker:
17+
- image: ldcircleci/ld-c-sdk-ubuntu # defined in sdks-ci-docker project
18+
steps:
19+
- checkout
20+
- run:
21+
name: Install prerequisites
22+
command: apt-get update -y && apt-get install -y git
23+
- run:
24+
name: Build
25+
command: mkdir -p build && cd build && cmake .. && make
26+
- run:
27+
name: Test
28+
command: cd build && GTEST_OUTPUT="xml:$(pwd)/.../reports/" make test
29+
30+
build-test-osx:
31+
macos:
32+
xcode: "12.5.1"
33+
resource_class: macos.x86.medium.gen2
34+
environment:
35+
CTEST_OUTPUT_ON_FAILURE: 1
36+
steps:
37+
- checkout
38+
- run:
39+
name: Install prerequisites
40+
command: HOMEBREW_NO_AUTO_UPDATE=1 brew install cmake
41+
- run:
42+
name: Build
43+
command: mkdir -p build && cd build && cmake .. && make
44+
- run:
45+
name: Test
46+
command: cd build && GTEST_OUTPUT="xml:$(pwd)/.../reports/" make test
47+
48+
build-test-windows:
49+
executor:
50+
name: win/vs2019
51+
shell: powershell.exe
52+
environment:
53+
CTEST_OUTPUT_ON_FAILURE: 1
54+
steps:
55+
- checkout
56+
- run:
57+
name: build
58+
command: ./scripts/build.ps1
59+
- run:
60+
name: Test
61+
command: ./scripts/test.ps1

.clang-format

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
ColumnLimit: 80
3+
IndentWidth: 4
4+
5+
AllowShortBlocksOnASingleLine: Never
6+
AllowShortFunctionsOnASingleLine: false
7+
AllowShortLoopsOnASingleLine: false
8+
AllowShortIfStatementsOnASingleLine: Never
9+
10+
BinPackArguments: false
11+
BinPackParameters: false
12+
13+
AlwaysBreakBeforeMultilineStrings: true
14+
AlwaysBreakAfterReturnType: All
15+
16+
AlignConsecutiveAssignments: true
17+
AlignAfterOpenBracket: AlwaysBreak
18+
AlignConsecutiveDeclarations: true
19+
AllowAllArgumentsOnNextLine: true
20+
AllowAllParametersOfDeclarationOnNextLine: true
21+
22+
BreakStringLiterals: true
23+
BreakBeforeBraces: Custom
24+
BraceWrapping:
25+
AfterEnum: true
26+
AfterStruct: true
27+
SplitEmptyFunction: true
28+
AfterFunction: true
29+
AfterControlStatement: MultiLine

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build/
2+
.idea/
3+
cmake-build-debug/
4+
reports/

0 commit comments

Comments
 (0)