File tree Expand file tree Collapse file tree 5 files changed +16
-11
lines changed
Expand file tree Collapse file tree 5 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,10 @@ task:
1212 - pkg install cmake
1313 - pkg install git
1414 build_script :
15- - ls /tmp/cirrus-ci-build/
1615 - mkdir build
1716 - cd build
1817 - cmake ..
19- - ls /tmp/cirrus-ci-build/
20- - ls /tmp/cirrus-ci-build/build/singleheader
21- - make VERBOSE=1
18+ - make -j2
2219 test_script :
23- - ctest --extra-verbose
20+ - cd build
21+ - ctest -j2 --output-on-failure -E checkperf
Original file line number Diff line number Diff line change 22[ ![ CircleCI] ( https://circleci.com/gh/simdjson/simdjson.svg?style=svg )] ( https://circleci.com/gh/simdjson/simdjson )
33[ ![ Fuzzing Status] ( https://oss-fuzz-build-logs.storage.googleapis.com/badges/simdjson.svg )] ( https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&q=proj%3Asimdjson&can=2 )
44[ ![ Build status] ( https://ci.appveyor.com/api/projects/status/ae77wp5v3lebmu6n/branch/master?svg=true )] ( https://ci.appveyor.com/project/lemire/simdjson-jmmti/branch/master )
5+ [ ![ CirrusCI] ( https://api.cirrus-ci.com/github/simdjson/simdjson.svg )] ( https://cirrus-ci.com/github/simdjson/simdjson )
56[ ![ ] [ license img ]] [ license ]
67
78simdjson : Parsing gigabytes of JSON per second
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Requirements
2020------------------
2121
2222- A recent compiler (LLVM clang6 or better, GNU GCC 7 or better, Visual Studio 2017 or better). We require C++11 support as a minimum.
23- - A 64-bit system (ARM or x64 Intel/AMD). Under Visual Studio, you must compile for 64-bit (e.g., x64) targets .
23+ - A 64-bit system (ARM or x64 Intel/AMD). We run tests on macOS, freeBSD, Linux and Windows. We recommend that Visual Studio users target a 64-bit build ( x64).
2424
2525Including simdjson
2626------------------
Original file line number Diff line number Diff line change 11#
22# Amalgamation
33#
4+ # We should check whether bash is available here and avoid failures on systems where
5+ # bash is unavailable.
46if (NOT MSVC )
7+ ##
8+ # Important! The script amalgamate.sh is not generally executable. It
9+ # assumes that bash is at /bin/bash which may not be true.
10+ ###
511 set (SINGLEHEADER_FILES simdjson.h simdjson.cpp amalgamate_demo.cpp README.md)
612 add_custom_command (
713 OUTPUT ${SINGLEHEADER_FILES}
814 COMMAND ${CMAKE_COMMAND} -E env
915 AMALGAMATE_SOURCE_PATH=${PROJECT_SOURCE_DIR}/src
1016 AMALGAMATE_INPUT_PATH=${PROJECT_SOURCE_DIR}/include
1117 AMALGAMATE_OUTPUT_PATH=${CMAKE_CURRENT_BINARY_DIR}
12- ${CMAKE_CURRENT_SOURCE_DIR} /amalgamate.sh
13- DEPENDS simdjson-source amalgamate.sh
18+ bash ${CMAKE_CURRENT_SOURCE_DIR} /amalgamate.sh
19+ DEPENDS amalgamate.sh simdjson-source
1420 )
1521
1622 add_custom_target (amalgamate DEPENDS ${SINGLEHEADER_FILES} )
17-
1823 add_executable (amalgamate_demo amalgamate_demo.cpp )
1924 target_link_libraries (amalgamate_demo simdjson-include-source )
2025 add_test (amalgamate_demo amalgamate_demo ${EXAMPLE_JSON} ${EXAMPLE_NDJSON} )
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ if (NOT MSVC) # Can't run .sh on windows
6666 #
6767 add_test (
6868 NAME testjson2json
69- COMMAND ${CMAKE_CURRENT_SOURCE_DIR} /testjson2json.sh
69+ COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR} /testjson2json.sh
7070 WORKING_DIRECTORY $<TARGET_FILE_DIR :minify >
7171 )
7272 set_property (TEST testjson2json APPEND PROPERTY DEPENDS minify json2json )
@@ -79,12 +79,13 @@ if (NOT MSVC) # Can't run .sh on windows
7979 add_executable (allparserscheckfile allparserscheckfile.cpp )
8080 target_link_libraries (allparserscheckfile competition-all )
8181
82- add_test (issue150 ${CMAKE_CURRENT_SOURCE_DIR} /issue150.sh )
82+ add_test (issue150 bash ${CMAKE_CURRENT_SOURCE_DIR} /issue150.sh )
8383 set_property (TEST issue150 APPEND PROPERTY DEPENDS allparserscheckfile )
8484 set_property (TEST issue150 APPEND PROPERTY LABELS per_implementation )
8585 endif ()
8686endif ()
8787
88+ # This should really test whether bash is available.
8889if (NOT MSVC )
8990 #
9091 # json2json tool test: check that json2json can parse twitter.json
You can’t perform that action at this time.
0 commit comments