Adding build configuration
Setting up debug build so we can better monitor memory leaks
This commit is contained in:
22
appveyor.yml
22
appveyor.yml
@@ -20,14 +20,23 @@ environment:
|
|||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
GENERATOR: "Visual Studio 15 2017"
|
GENERATOR: "Visual Studio 15 2017"
|
||||||
GROUP: "SUPPORTED"
|
GROUP: "SUPPORTED"
|
||||||
|
BUILD_CONFIG: "Release"
|
||||||
BOOST_ROOT: "C:/Libraries/boost_1_67_0"
|
BOOST_ROOT: "C:/Libraries/boost_1_67_0"
|
||||||
|
|
||||||
PLATFORM: "win32"
|
PLATFORM: "win32"
|
||||||
REF_BUILD_ID: "220dev5"
|
REF_BUILD_ID: "220dev5"
|
||||||
# New build on Visual Studio 15 2017
|
# New build on Visual Studio 15 2017
|
||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
GENERATOR: "Visual Studio 15 2017 Win64"
|
GENERATOR: "Visual Studio 15 2017 Win64"
|
||||||
GROUP: "EXPERIMENTAL"
|
GROUP: "EXPERIMENTAL"
|
||||||
|
BUILD_CONFIG: "Release"
|
||||||
|
BOOST_ROOT: "C:/Libraries/boost_1_67_0"
|
||||||
|
PLATFORM: "win64"
|
||||||
|
REF_BUILD_ID: "381_2"
|
||||||
|
# adding debug configuration so we can monitor memory leaks
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
|
GENERATOR: "Visual Studio 15 2017 Win64"
|
||||||
|
GROUP: "EXPERIMENTAL"
|
||||||
|
BUILD_CONFIG: "Debug"
|
||||||
BOOST_ROOT: "C:/Libraries/boost_1_67_0"
|
BOOST_ROOT: "C:/Libraries/boost_1_67_0"
|
||||||
PLATFORM: "win64"
|
PLATFORM: "win64"
|
||||||
REF_BUILD_ID: "381_2"
|
REF_BUILD_ID: "381_2"
|
||||||
@@ -60,7 +69,7 @@ before_build:
|
|||||||
|
|
||||||
# run custom build script
|
# run custom build script
|
||||||
build_script:
|
build_script:
|
||||||
- cmake --build . --config Release
|
- cmake --build . --config %BUILD_CONFIG%
|
||||||
|
|
||||||
before_test:
|
before_test:
|
||||||
- cd %EPANET_HOME%
|
- cd %EPANET_HOME%
|
||||||
@@ -70,11 +79,12 @@ before_test:
|
|||||||
test_script:
|
test_script:
|
||||||
# run unit tests
|
# run unit tests
|
||||||
- cd %BUILD_HOME%\tests
|
- cd %BUILD_HOME%\tests
|
||||||
- ctest -C Release --output-on-failure
|
- ctest -C %BUILD_CONFIG% --output-on-failure
|
||||||
# run regression tests
|
# run regression tests
|
||||||
- cd %EPANET_HOME%
|
- IF "%BUILD_CONFIG%" == "Release" (
|
||||||
- tools\run-nrtest.cmd %REF_BUILD_ID% %SUT_BUILD_ID%
|
cd %EPANET_HOME%
|
||||||
|
tools\run-nrtest.cmd %REF_BUILD_ID% %SUT_BUILD_ID%
|
||||||
|
)
|
||||||
on_success:
|
on_success:
|
||||||
- cd %TEST_HOME%\benchmark
|
- cd %TEST_HOME%\benchmark
|
||||||
- appveyor PushArtifact receipt.json
|
- appveyor PushArtifact receipt.json
|
||||||
|
|||||||
Reference in New Issue
Block a user