diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-14 02:02:40 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-14 02:02:40 +0300 |
commit | f1aa2a13b453818228b46b7338d70e8c6ba5f533 (patch) | |
tree | be144a2a9c728436fadf8efa70057a4776f676ce /.appveyor.yml | |
parent | add .clang-format (diff) | |
download | winapi-common-f1aa2a13b453818228b46b7338d70e8c6ba5f533.tar.gz winapi-common-f1aa2a13b453818228b46b7338d70e8c6ba5f533.zip |
add AppVeyor configuration
Diffstat (limited to '')
-rw-r--r-- | .appveyor.yml | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..e77ef02 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,87 @@ +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-common + +platform: + - Win32 + - x64 + +configuration: + - Debug + - RelWithDebInfo + +matrix: + fast_finish: true + + # On Win32, only build Debug to speed things up: + exclude: + - platform: Win32 + configuration: RelWithDebInfo + +install: + - git submodule update --init --recursive + +before_build: + - '"%python_exe%" cmake\tools\clang-format.py' + +build_script: + - cd cmake + - >- + "%python_exe%" -m project.ci.appveyor.cmake + --install "%install_dir%" + --boost "%appveyor_boost_root%" + -- -D WINAPI_COMMON_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\winapi-common-unit-tests.exe"' + +for: +# Build Release on master only to speed things up: +- branches: + except: + - master + configuration: + - Debug + +- matrix: + only: + - image: Visual Studio 2013 + environment: + # First release of Boost.Test v3. + boost_version: 1.59.0 + build_script: + - cd cmake + - '"%python_exe%" -m project.ci.appveyor.boost -- --with-test' + - >- + "%python_exe%" -m project.ci.appveyor.cmake + --install "%install_dir%" + --boost C:\projects\boost + -- -D WINAPI_COMMON_TESTS=ON + +- 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 |