diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-04 10:58:13 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-04 10:58:13 +0300 |
commit | 6f03dfffa85504942dbc8a922c46efdbfddb3eb0 (patch) | |
tree | b4d1576f1a19d983497d18b7f4fd615c808d36b0 | |
parent | add .clang-format (diff) | |
download | winapi-utf8-6f03dfffa85504942dbc8a922c46efdbfddb3eb0.tar.gz winapi-utf8-6f03dfffa85504942dbc8a922c46efdbfddb3eb0.zip |
add AppVeyor configuration
-rw-r--r-- | .appveyor.yml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..8dee20f --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,70 @@ +version: '{build}' + +image: + - Visual Studio 2013 + - Visual Studio 2015 + - Visual Studio 2017 + - Visual Studio 2019 + +environment: + python_exe: C:\Python36-x64\python.exe + install_dir: C:\Projects\install\winapi-utf8 + +platform: + - Win32 + - x64 + +configuration: + - Debug + - RelWithDebInfo + +matrix: + fast_finish: true + +install: + - git submodule update --init --recursive + +build_script: + - '"%python_exe%" cmake\tools\clang-format.py' + - cd cmake + - >- + "%python_exe%" -m project.ci.appveyor.cmake + --install "%install_dir%" + --boost "%appveyor_boost_root%" + -- -D WINAPI_UTF8_ENABLE_TESTS=ON + +after_build: + - 7z.exe a "%APPVEYOR_PROJECT_NAME%-%PLATFORM%-%CONFIGURATION%.zip" "%install_dir%" + - appveyor.exe PushArtifact "%APPVEYOR_PROJECT_NAME%-%PLATFORM%-%CONFIGURATION%.zip" + +test_script: + - '"%install_dir%\bin\test\unit_tests.exe" --log_level=all' + +for: +# Only build Release builds on master to speed things up: +- branches: + except: + - master + configuration: + - Debug + +- matrix: + only: + - image: Visual Studio 2013 + environment: + appveyor_boost_root: C:\Libraries\boost_1_58_0 +- matrix: + only: + - image: Visual Studio 2015 + environment: + appveyor_boost_root: C:\Libraries\boost_1_62_0 +- matrix: + only: + - image: Visual Studio 2017 + environment: + appveyor_boost_root: C:\Libraries\boost_1_69_0 +- matrix: + only: + - image: Visual Studio 2019 + environment: + appveyor_boost_root: C:\Libraries\boost_1_71_0 |