-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
365 changed files
with
20,100 additions
and
17,750 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,44 @@ | ||
Checks: '*, | ||
-android-cloexec-fopen, | ||
-cppcoreguidelines-avoid-goto, | ||
-cppcoreguidelines-avoid-magic-numbers, | ||
-cppcoreguidelines-avoid-non-const-global-variables, | ||
-cppcoreguidelines-macro-usage, | ||
-cppcoreguidelines-pro-bounds-array-to-pointer-decay, | ||
-cppcoreguidelines-pro-bounds-constant-array-index, | ||
-cppcoreguidelines-pro-bounds-pointer-arithmetic, | ||
-cppcoreguidelines-pro-type-reinterpret-cast, | ||
-cppcoreguidelines-pro-type-union-access, | ||
-fuchsia-default-arguments-calls, | ||
-fuchsia-default-arguments-declarations, | ||
-fuchsia-overloaded-operator, | ||
-google-explicit-constructor, | ||
-google-readability-function-size, | ||
-google-runtime-int, | ||
-google-runtime-references, | ||
-hicpp-avoid-goto, | ||
-hicpp-explicit-conversions, | ||
-hicpp-function-size, | ||
-hicpp-no-array-decay, | ||
-hicpp-no-assembler, | ||
-hicpp-signed-bitwise, | ||
-hicpp-uppercase-literal-suffix, | ||
-llvm-header-guard, | ||
-llvm-include-order, | ||
-llvmlibc-*, | ||
-misc-no-recursion, | ||
-misc-non-private-member-variables-in-classes, | ||
-modernize-use-trailing-return-type, | ||
-readability-function-size, | ||
-readability-magic-numbers, | ||
-readability-redundant-access-specifiers, | ||
-readability-uppercase-literal-suffix' | ||
|
||
CheckOptions: | ||
- key: hicpp-special-member-functions.AllowSoleDefaultDtor | ||
value: 1 | ||
|
||
WarningsAsErrors: '*' | ||
|
||
#HeaderFilterRegex: '.*nlohmann.*' | ||
HeaderFilterRegex: '.*hpp$' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
kind: pipeline | ||
name: test-on-arm64 | ||
|
||
platform: | ||
arch: arm64 | ||
|
||
steps: | ||
- name: build | ||
image: gcc | ||
commands: | ||
- wget https://github.com/Kitware/CMake/releases/download/v3.20.2/cmake-3.20.2.tar.gz | ||
- tar xfz cmake-3.20.2.tar.gz | ||
- cd cmake-3.20.2 | ||
- ./configure | ||
- make cmake ctest -j10 | ||
- cd .. | ||
- mkdir build | ||
- cd build | ||
- ../cmake-3.20.2/bin/cmake .. -DJSON_FastTests=ON | ||
- make -j10 | ||
- cd test | ||
- ../../cmake-3.20.2/bin/ctest -j10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,44 @@ | ||
name: macOS | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
- release/* | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
xcode: | ||
runs-on: macos-10.15 | ||
strategy: | ||
matrix: | ||
xcode: [12.4, 12.3, 12.2, 12.1.1, 12.1, 12, 11.7, 11.6, 11.5, 11.4.1, 11.3.1, 11.2.1, 10.3] | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | ||
|
||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: cmake | ||
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON | ||
- name: build | ||
run: cmake --build build --parallel 10 | ||
- name: test | ||
run: cd build ; ctest -j 10 --output-on-failure | ||
|
||
xcode_standards: | ||
runs-on: macos-10.15 | ||
strategy: | ||
matrix: | ||
standard: [11, 14, 17, 20] | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: cmake | ||
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On | ||
- name: build | ||
run: cmake --build build --parallel 10 | ||
- name: test | ||
run: cd build ; ctest -j 10 --output-on-failure | ||
- uses: actions/checkout@v2 | ||
- name: cmake | ||
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DCMAKE_CXX_STANDARD_REQUIRED=ON | ||
- name: build | ||
run: cmake --build build --parallel 10 | ||
- name: test | ||
run: cd build ; ctest -j 10 --output-on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,114 @@ | ||
name: Ubuntu | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
- release/* | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
ci_test_clang: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install_ninja | ||
run: | | ||
sudo apt update | ||
sudo apt install ninja-build | ||
shell: bash | ||
- name: install_clang | ||
run: | | ||
wget https://apt.llvm.org/llvm.sh | ||
chmod +x llvm.sh | ||
sudo ./llvm.sh 11 | ||
sudo apt-get install clang-tools-11 | ||
shell: bash | ||
- name: cmake | ||
run: cmake -S . -B build -DJSON_CI=On | ||
- name: build | ||
run: cmake --build build --target ci_test_clang | ||
|
||
ci_test_gcc: | ||
runs-on: ubuntu-latest | ||
container: nlohmann/json-ci:latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: cmake | ||
run: cmake -S . -B build -DJSON_CI=On | ||
- name: build | ||
run: cmake --build build --target ci_test_gcc | ||
|
||
ci_static_analysis: | ||
runs-on: ubuntu-latest | ||
container: nlohmann/json-ci:latest | ||
strategy: | ||
matrix: | ||
target: [ci_clang_tidy, ci_cppcheck, ci_test_valgrind, ci_test_clang_sanitizer, ci_test_amalgamation, ci_clang_analyze, ci_cpplint, ci_cmake_flags, ci_single_binaries, ci_reproducible_tests, ci_non_git_tests, ci_offline_testdata, ci_infer] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: cmake | ||
run: cmake -S . -B build -DJSON_CI=On | ||
- name: build | ||
run: cmake --build build --target ${{ matrix.target }} | ||
|
||
ci_cmake_options: | ||
runs-on: ubuntu-latest | ||
container: nlohmann/json-ci:latest | ||
strategy: | ||
matrix: | ||
target: [ci_test_diagnostics, ci_test_noexceptions, ci_test_noimplicitconversions] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: cmake | ||
run: cmake -S . -B build -DJSON_CI=On | ||
- name: build | ||
run: cmake --build build --target ${{ matrix.target }} | ||
|
||
ci_test_coverage: | ||
runs-on: ubuntu-latest | ||
container: nlohmann/json-ci:latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: cmake | ||
run: cmake -S . -B build -DJSON_CI=On | ||
- name: build | ||
run: cmake --build build --target ci_test_coverage | ||
- name: archive coverage report | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: code-coverage-report | ||
path: /__w/json/json/build/html | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: /__w/json/json/build/json.info.filtered.noexcept | ||
|
||
ci_test_compilers: | ||
runs-on: ubuntu-latest | ||
container: nlohmann/json-ci:latest | ||
strategy: | ||
matrix: | ||
compiler: [g++-4.8, g++-4.9, g++-5, g++-7, g++-8, g++-9, g++-10, clang++-3.5, clang++-3.6, clang++-3.7, clang++-3.8, clang++-3.9, clang++-4.0, clang++-5.0, clang++-6.0, clang++-7, clang++-8, clang++-9, clang++-10, clang++-11] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: cmake | ||
run: cmake -S . -B build -DJSON_CI=On | ||
- name: build | ||
run: cmake --build build --target ci_test_compiler_${{ matrix.compiler }} | ||
|
||
ci_test_standards: | ||
runs-on: ubuntu-latest | ||
container: nlohmann/json-ci:latest | ||
strategy: | ||
matrix: | ||
standard: [11, 14, 17, 20] | ||
compiler: [gcc, clang] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: cmake | ||
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On | ||
- name: build | ||
run: cmake --build build --parallel 10 | ||
- name: test | ||
run: cd build ; ctest -j 10 --output-on-failure | ||
- uses: actions/checkout@v2 | ||
- name: cmake | ||
run: cmake -S . -B build -DJSON_CI=On | ||
- name: build | ||
run: cmake --build build --target ci_test_${{ matrix.compiler }}_cxx${{ matrix.standard }} |
Oops, something went wrong.