Skip to content

Commit d4248f1

Browse files
authored
Merge pull request nfrechette#16 from CodyDWJones/feature-choose-tests
Use the argparse module, upgrade Catch2, allow running of specific unit tests
2 parents 377c1f7 + da9c243 commit d4248f1

File tree

11 files changed

+88
-11678
lines changed

11 files changed

+88
-11678
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "external/catch2"]
2+
path = external/catch2
3+
url = https://github.com/catchorg/Catch2

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,17 @@ before_install:
6464
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python || true ; fi
6565

6666
script:
67-
- python3 make.py -clean -build -unit_test -${COMPILER} -Debug -x86
68-
- python3 make.py -clean -build -unit_test -${COMPILER} -Release -x86
69-
- python3 make.py -clean -build -unit_test -${COMPILER} -Debug -x64
70-
- python3 make.py -clean -build -unit_test -${COMPILER} -Release -x64
67+
- python3 make.py -clean -build -unit_test -compiler ${COMPILER} -config Debug -cpu x86
68+
- python3 make.py -clean -build -unit_test -compiler ${COMPILER} -config Release -cpu x86
69+
- python3 make.py -clean -build -unit_test -compiler ${COMPILER} -config Debug -cpu x64
70+
- python3 make.py -clean -build -unit_test -compiler ${COMPILER} -config Release -cpu x64
7171
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
72-
python3 make.py -clean -build -ios -Debug;
73-
python3 make.py -clean -build -ios -Release;
72+
python3 make.py -clean -build -compiler ios -config Debug;
73+
python3 make.py -clean -build -compiler ios -config Release;
7474
fi'
7575
# Only run sonarcloud on non-PRs
7676
- 'if [[ "$SONARCLOUD" == "1" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
77-
python3 make.py -clean -${COMPILER} -Release -x64;
78-
build-wrapper-linux-x86-64 --out-dir bw_output python3 make.py -build -${COMPILER} -Release -x64;
77+
python3 make.py -clean -compiler ${COMPILER} -config Release -cpu x64;
78+
build-wrapper-linux-x86-64 --out-dir bw_output python3 make.py -build -compiler ${COMPILER} -config Release -cpu x64;
7979
sonar-scanner;
8080
fi'

appveyor.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ image:
77
- Visual Studio 2015
88
- Visual Studio 2017
99

10+
install:
11+
- cmd: >-
12+
git submodule update --init --recursive
13+
1014
build_script:
1115
- cmd: >-
1216
IF "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (SET COMPILER=vs2015) ELSE (SET COMPILER=vs2017)
1317
14-
%PYTHON%\\python.exe make.py -clean -build -unit_test -%COMPILER% -Debug -x86
18+
%PYTHON%\\python.exe make.py -clean -build -unit_test -compiler %COMPILER% -config Debug -cpu x86
1519
16-
%PYTHON%\\python.exe make.py -clean -build -unit_test -%COMPILER% -Release -x86
20+
%PYTHON%\\python.exe make.py -clean -build -unit_test -compiler %COMPILER% -config Release -cpu x86
1721
18-
%PYTHON%\\python.exe make.py -clean -build -unit_test -%COMPILER% -Debug -x64
22+
%PYTHON%\\python.exe make.py -clean -build -unit_test -compiler %COMPILER% -config Debug -cpu x64
1923
20-
%PYTHON%\\python.exe make.py -clean -build -unit_test -%COMPILER% -Release -x64
24+
%PYTHON%\\python.exe make.py -clean -build -unit_test -compiler %COMPILER% -config Release -cpu x64

external/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Good news! There are no external dependencies needed by this library at runtime!
44

55
## Catch
66

7-
[Catch 1.9.6](https://github.com/catchorg/Catch2/releases/tag/v1.9.6) is used by our [unit tests](../tests). You will only need it if you run the unit tests and it is included as-is without modifications.
7+
[Catch2 v2.5.0](https://github.com/catchorg/Catch2/releases/tag/v2.5.0) is used by our [unit tests](../tests). You will only need it if you run the unit tests and it is included as-is without modifications.

0 commit comments

Comments
 (0)