8000 Moved ancillary files to `extras/` (fixes #1011) · joglosemarduino/ArduinoJson@b47ac27 · GitHub
[go: up one dir, main page]

Skip to content

Commit b47ac27

Browse files
committed
Moved ancillary files to extras/ (fixes bblanchon#1011)
1 parent ed18e77 commit b47ac27

File tree

226 files changed

+19
-54
lines changed

Some content is hidden

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

226 files changed

+19
-54
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/sftp-config.json
77
.tags
88
.tags_sorted_by_file
9-
/fuzzing/*_fuzzer
10-
/fuzzing/*_fuzzer.options
11-
/fuzzing/*_fuzzer_seed_corpus.zip
9+
/extras/fuzzing/*_fuzzer
10+
/extras/fuzzing/*_fuzzer.options
11+
/extras/fuzzing/*_fuzzer_seed_corpus.zip
1212
.vs/

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ matrix:
127127
cache:
128128
directories:
129129
- "~/.platformio"
130-
- "fuzzing/json_corpus"
131-
- "fuzzing/msgpack_corpus"
132-
script: scripts/travis/$SCRIPT.sh
130+
- "extras/fuzzing/json_corpus"
131+
- "extras/fuzzing/msgpack_corpus"
132+
script: extras/ci/$SCRIPT.sh

CHANGELOG.md

Lines changed: 1 addition & 0 deletions

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ if(${COVERAGE})
1717
endif()
1818

1919
include_directories(${CMAKE_CURRENT_LIST_DIR}/src)
20-
add_subdirectory(third-party/catch)
21-
add_subdirectory(test)
22-
add_subdirectory(fuzzing)
20+
add_subdirectory(extras/tests)
21+
add_subdirectory(extras/fuzzing)
File renamed without changes.
File renamed without changes.

scripts/travis/coverage.sh renamed to extras/ci/coverage.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ make
55
make test
66

77
pip install --user cpp-coveralls 'requests[security]'
8-
coveralls --exclude third-party --gcov-options '\-lp'; fi
8+
pwd
9+
coveralls --include 'src' --gcov-options '\-lp'

scripts/travis/fuzz.sh renamed to extras/ci/fuzz.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
ROOT_DIR=$(dirname $0)/../../
44
INCLUDE_DIR=${ROOT_DIR}/src/
5-
FUZZING_DIR=${ROOT_DIR}/fuzzing/
5+
FUZZING_DIR=${ROOT_DIR}/extras/fuzzing/
66
CXXFLAGS="-g -fprofile-instr-generate -fcoverage-mapping -fsanitize=address,undefined,fuzzer -fno-sanitize-recover=all"
77

88
fuzz() {

scripts/travis/platformio.sh renamed to extras/ci/platformio.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
pip install --user platformio
44

5-
rm -r test
6-
75
case $BOARD in
86
uno)
97
platformio lib install 868 # SD library
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

scripts/build-arduino-package.sh renamed to extras/scripts/build-arduino-package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
TAG=$(git describe)
44
OUTPUT="ArduinoJson-$TAG.zip"
55

6-
cd $(dirname $0)/../..
6+
cd $(dirname $0)/../../..
77

88
# remove existing file
99
rm -f $OUTPUT

scripts/build-single-header.sh renamed to extras/scripts/build-single-header.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RE_RELATIVE_INCLUDE='^#include[[:space:]]*"(.*)"'
77
RE_ABSOLUTE_INCLUDE='^#include[[:space:]]*<(ArduinoJson/.*)>'
88
RE_SYSTEM_INCLUDE='^#include[[:space:]]*<(.*)>'
99
RE_EMPTY='^(#pragma[[:space:]]+once)?[[:space:]]*(//.*)?$'
10-
SRC_DIRECTORY="$(realpath "$(dirname $0)/../src")"
10+
SRC_DIRECTORY="$(realpath "$(dirname $0)/../../src")"
1111

1212

1313
declare -A INCLUDED

scripts/create-build-envs.sh renamed to extras/scripts/create-build-envs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
export PATH="$PATH:/Applications/CMake.app/Contents/bin/"
44

5-
cd $(dirname $0)/..
5+
cd $(dirname $0)/../..
66
ROOT=$(pwd)
77

88
mkdir "build"

scripts/publish-particle-library.sh renamed to extras/scripts/publish-particle-library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -eu
44

5-
SOURCE_DIR="$(dirname "$0")/.."
5+
SOURCE_DIR="$(dirname "$0")/../.."
66
WORK_DIR=$(mktemp -d)
77
trap 'rm -rf "$WORK_DIR"' EXIT
88

scripts/publish.sh renamed to extras/scripts/publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -eu
44

5-
cd "$(dirname "$0")/.."
5+
cd "$(dirname "$0")/../.."
66

77
VERSION="$1"
88
DATE=$(date +%F)
File renamed without changes.

test/CMakeLists.txt renamed to extras/tests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Copyright Benoit Blanchon 2014-2019
33
# MIT License
44

5+
add_subdirectory(catch)
6+
57
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
68
add_compile_options(
79
-pedantic
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.