2018-02-10 02:07:35 +01:00
|
|
|
image:
|
|
|
|
- Visual Studio 2017
|
|
|
|
|
|
|
|
clone_depth: 1
|
|
|
|
shallow_clone: false
|
|
|
|
|
2018-06-07 02:19:53 +02:00
|
|
|
cache:
|
|
|
|
- C:\Users\appveyor\.conan -> conanfile.py
|
|
|
|
- C:\.conan -> conanfile.py
|
|
|
|
|
2018-02-10 02:07:35 +01:00
|
|
|
environment:
|
2018-06-07 02:19:53 +02:00
|
|
|
APPVEYOR_SAVE_CACHE_ON_ERROR: true
|
2018-08-27 20:16:40 +02:00
|
|
|
ALSOFT_DRIVERS: null
|
2018-02-10 02:07:35 +01:00
|
|
|
PYTHON: "C:\\Python36-x64"
|
2018-06-07 02:19:53 +02:00
|
|
|
CMAKE_GENERATOR_BASE: "Visual Studio 15 2017"
|
2018-02-10 02:07:35 +01:00
|
|
|
NAME_SUFFIX: "windows"
|
2018-06-07 02:19:53 +02:00
|
|
|
USE_CONAN: 1
|
2018-02-10 02:07:35 +01:00
|
|
|
|
|
|
|
platform:
|
2018-06-07 02:19:53 +02:00
|
|
|
# - Win32
|
|
|
|
- x64
|
2018-02-10 02:07:35 +01:00
|
|
|
|
|
|
|
configuration:
|
|
|
|
# - Debug
|
|
|
|
- Release
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: false
|
|
|
|
|
2018-06-07 02:19:53 +02:00
|
|
|
clone_folder: C:\projects\openrw
|
2018-02-10 02:07:35 +01:00
|
|
|
|
|
|
|
init:
|
|
|
|
- set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
|
|
|
|
- python --version
|
|
|
|
- cmake --version
|
|
|
|
- msbuild /version
|
2018-06-07 02:19:53 +02:00
|
|
|
- pip3 install conan
|
|
|
|
- conan user
|
|
|
|
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
|
2018-02-10 02:07:35 +01:00
|
|
|
|
2018-06-21 00:34:05 +02:00
|
|
|
install:
|
|
|
|
- cd "%APPVEYOR_BUILD_FOLDER%"
|
|
|
|
- for /f %%i in ('git rev-parse HEAD') do set COMMIT_HASH=%%i
|
2018-06-23 05:11:55 +02:00
|
|
|
- echo APPVEYOR_REPO_COMMIT=%APPVEYOR_REPO_COMMIT%, COMMIT_HASH=%COMMIT_HASH%
|
|
|
|
- if NOT "%APPVEYOR_REPO_COMMIT%" == "%COMMIT_HASH%" echo "Appveyor git hash does not match git checkout hash"
|
2018-06-21 00:34:05 +02:00
|
|
|
|
2018-02-10 02:07:35 +01:00
|
|
|
build_script:
|
2018-06-07 02:19:53 +02:00
|
|
|
- ctest -VV -S "%APPVEYOR_BUILD_FOLDER%/cmake/ctest/script_ci.ctest"
|
2018-06-04 19:34:12 +02:00
|
|
|
|
|
|
|
after_build:
|
|
|
|
- cd "%APPVEYOR_BUILD_FOLDER%\build"
|
2018-08-14 20:23:36 +02:00
|
|
|
- cpack -C %CONFIGURATION% -G TXZ
|
2018-06-21 00:34:05 +02:00
|
|
|
- appveyor PushArtifact OpenRW-%COMMIT_HASH:~0,8%.tar.xz
|