-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add MS Visual Studio tests with Appveyor. Co-authored-by: LCC <[email protected]>
- Loading branch information
1 parent
4d95cf7
commit 2f24b6f
Showing
7 changed files
with
90 additions
and
29 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
image: | ||
- Visual Studio 2019 | ||
- Visual Studio 2017 | ||
- Visual Studio 2015 | ||
configuration: | ||
- Debug | ||
- Release | ||
platform: | ||
- x86 | ||
- x64 | ||
- ARM | ||
- Any CPU | ||
init: | ||
- pwsh: >- | ||
cmake --version | ||
msbuild /version | ||
install: | ||
- pwsh: >- | ||
git clone https://github.com/onqtam/doctest.git | ||
cd doctest | ||
mkdir build | ||
cd build | ||
cmake -D DOCTEST_WITH_TESTS=OFF -D DOCTEST_WITH_MAIN_IN_STATIC_LIB=OFF -D CMAKE_CONFIGURATION_TYPES=Release -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=$env:APPVEYOR_BUILD_FOLDER/../share .. | ||
cmake --build . --config Release --target install | ||
build_script: | ||
- pwsh: >- | ||
cd $env:APPVEYOR_BUILD_FOLDER | ||
mkdir build | ||
cd build | ||
mkdir install | ||
cd install | ||
cmake -D CMAKE_CONFIGURATION_TYPES=$env:CONFIGURATION -D CMAKE_BUILD_TYPE=$env:CONFIGURATION -D CMAKE_INSTALL_PREFIX=$env:APPVEYOR_BUILD_FOLDER/../share ../.. | ||
cmake --build . --config $env:CONFIGURATION --target install | ||
cd .. | ||
cmake -D CMAKE_CONFIGURATION_TYPES=$env:CONFIGURATION -D CMAKE_BUILD_TYPE=$env:CONFIGURATION -D CMAKE_PREFIX_PATH=$env:APPVEYOR_BUILD_FOLDER/../share ../tests | ||
cmake --build . --config $env:CONFIGURATION | ||
test_script: | ||
- cmd: >- | ||
cd build | ||
ctest --output-on-failure --timeout 10 -C %CONFIGURATION% |
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