mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-12 18:30:25 +01:00
69a0be4c9c
* It is confusing to name the target g3logger. KISS --> g3log. This MIGHT break installations for some but it's a needed correction. * Updated version number to 2.1.x
38 lines
871 B
YAML
38 lines
871 B
YAML
environment:
|
|
P: "c:/projects/libs"
|
|
|
|
# Operating system (build VM template)
|
|
os: Visual Studio 2015
|
|
|
|
# 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
|
|
- cd build
|
|
|
|
build_script:
|
|
- cmake -G "Visual Studio 14 2015 Win64" -DADD_G3LOG_UNIT_TEST=ON -DUSE_DYNAMIC_LOGGING_LEVELS=ON -DCHANGE_G3LOG_DEBUG_TO_DBUG=ON -DCMAKE_INSTALL_PREFIX=c:\g3log ..
|
|
- cmake --build . --config Release --target install
|
|
|
|
# scripts to run after build
|
|
after_build:
|
|
- cmd /c Release\g3log-FATAL-contract.exe || exit /B 0
|
|
- tree /A /F c:\g3log
|
|
- cpack -G "NSIS;ZIP"
|
|
- cpack -C Release
|
|
- ctest -C Release --verbose
|
|
|