2017-05-04 02:49:11 +02:00
|
|
|
environment:
|
|
|
|
P: "c:/projects/libs"
|
|
|
|
|
|
|
|
# Operating system (build VM template)
|
2020-12-16 14:51:26 +01:00
|
|
|
os: Visual Studio 2017
|
2017-05-04 02:49:11 +02:00
|
|
|
|
|
|
|
# scripts that are called at very beginning, before repo cloning
|
|
|
|
#init:
|
|
|
|
|
|
|
|
|
|
|
|
# clone directory
|
|
|
|
clone_folder: c:\projects\g3log
|
|
|
|
|
|
|
|
platform: x64
|
|
|
|
configuration: Release
|
|
|
|
|
|
|
|
install:
|
|
|
|
# by default, all script lines are interpreted as batch
|
|
|
|
|
|
|
|
# scripts to run before build
|
|
|
|
before_build:
|
|
|
|
- cd c:\projects\g3log\
|
|
|
|
- mkdir build
|
2020-12-16 14:51:26 +01:00
|
|
|
- cd build
|
2019-05-14 06:42:15 +02:00
|
|
|
|
|
|
|
build_script:
|
2020-12-16 14:51:26 +01:00
|
|
|
- cmake -G "Visual Studio 15 2017 Win64" -DADD_G3LOG_UNIT_TEST=ON -DUSE_DYNAMIC_LOGGING_LEVELS=ON -DCHANGE_G3LOG_DEBUG_TO_DBUG=ON -DCMAKE_INSTALL_PREFIX=c:\g3log ..
|
2019-05-14 06:42:15 +02:00
|
|
|
- cmake --build . --config Release --target install
|
2020-12-16 14:51:26 +01:00
|
|
|
|
2017-05-04 02:49:11 +02:00
|
|
|
# scripts to run after build
|
|
|
|
after_build:
|
2017-05-09 18:26:48 +02:00
|
|
|
- cmd /c Release\g3log-FATAL-contract.exe || exit /B 0
|
2019-05-14 06:42:15 +02:00
|
|
|
- tree /A /F c:\g3log
|
|
|
|
- cpack -G "NSIS;ZIP"
|
2020-07-09 06:42:55 +02:00
|
|
|
- cpack -C Release
|
2017-05-09 18:26:48 +02:00
|
|
|
- ctest -C Release --verbose
|
2017-05-04 02:49:11 +02:00
|
|
|
|