
* Tests live in a "Tests" folder alongside the other components. Inside the "Tests" folder, tests are split into folders by the component they test. For example, the example unit test of "rcVdot" (which is implmemented in Recast/Recast.h) lives in "Tests/Recast/Tests_Recast.h". * Uses the Catch testing framework * One example test of "rcVdot" * Tests are run on Travis and Appveyor after every build. Failing unit tests will fail the build in both case. * Added instructions on running unit tests to the readme
37 lines
915 B
YAML
37 lines
915 B
YAML
shallow_clone: true
|
|
|
|
os:
|
|
- Visual Studio 2015
|
|
|
|
environment:
|
|
matrix:
|
|
- TOOLSET: vs2010
|
|
- TOOLSET: vs2013
|
|
- TOOLSET: vs2015
|
|
|
|
install:
|
|
# Download Premake
|
|
- ps: Start-FileDownload 'https://github.com/premake/premake-core/releases/download/v5.0.0-alpha7/premake-5.0.0-alpha7-windows.zip' 'premake.zip'
|
|
|
|
# Extract it in-place; premake5.exe is at the top level.
|
|
- 7z x premake.zip
|
|
|
|
# Download SDL.
|
|
- ps: Start-FileDownload 'https://www.libsdl.org/release/SDL2-devel-2.0.4-VC.zip' 'RecastDemo/Contrib/SDL.zip'
|
|
|
|
# Extract it, put it in the right place, and rename it.
|
|
- cd RecastDemo\Contrib && 7z x SDL.zip && ren SDL2-2.0.4 SDL && cd ..\..
|
|
|
|
# Generate solution files using premake.
|
|
- cd RecastDemo && "../premake5.exe" %TOOLSET% && cd ..
|
|
|
|
configuration:
|
|
- Debug
|
|
- Release
|
|
|
|
build:
|
|
project: RecastDemo/Build/$(TOOLSET)/recastnavigation.sln
|
|
|
|
after_test:
|
|
- RecastDemo\Bin\Tests.exe
|