mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-12 18:30:25 +01:00
123977f106
* unit tests running with windows shared dll
* CMake automatically uses DLL runtime - remove cmake entries modifying
compiler flags
* missing DBUG vs DEBUG issue in Linux
* generated header added
* correction in CMake: Set HEADER_FILES correctly
* added static library option
* switched to powershell and included WORKING_DIRECTORY
* powershell use in windows and WORKING_DIRECTORY instead of cd
* Fixed appveyor.yml to use Release configuration and run unit tests
* trying to make appveyor work again ...
* make sure ERRORLEVEL is 0 when unit tests run successfully
* Still trying to fix appveyor ...
* Defaulting to shared library in linux, too
* Removed runtime loading test when g3log is not a shared library in linux
* Run unit tests verbosly using ctest.exe
* Disabled AggressiveThreadCallsDuringShutdown test
* Revert "Run unit tests verbosly using ctest.exe" (accidental commit)
This reverts commit b30513450d
.
* re-committing valid parts of reverted commit
* DBUG vs DEBUG fix moved to generated_definitions.hpp
* cleanup shared/static option
* clarify cmake build types regardless of type
* Added compile test for DEBUG and DBUG
* put back formatting
* Removed commented out /MD switches for MSVC
39 lines
893 B
YAML
39 lines
893 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
|
|
|
|
build:
|
|
project: c:\projects\g3log\build\g3log.sln
|
|
|
|
# scripts to run before build
|
|
before_build:
|
|
- echo Running cmake...
|
|
- cd c:\projects\g3log\3rdParty\gtest
|
|
- 7z x gtest-1.7.0.zip
|
|
- cd c:\projects\g3log\
|
|
- mkdir build
|
|
- cd build
|
|
- cmake -G "Visual Studio 14 2015 Win64" -DADD_G3LOG_UNIT_TEST=ON -DUSE_DYNAMIC_LOGGING_LEVELS=ON -DCHANGE_G3LOG_DEBUG_TO_DBUG=ON ..
|
|
- msbuild g3log.sln /p:Configuration=Release
|
|
|
|
# scripts to run after build
|
|
after_build:
|
|
- cmd /c Release\g3log-FATAL-contract.exe || exit /B 0
|
|
- ctest -C Release --verbose
|
|
|