-
Notifications
You must be signed in to change notification settings - Fork 175
/
.appveyor.yml
52 lines (41 loc) · 1.25 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
image:
- Visual Studio 2017
clone_depth: 1
shallow_clone: false
cache:
- C:\Users\appveyor\.conan -> conanfile.py
- C:\.conan -> conanfile.py
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
ALSOFT_DRIVERS: null
PYTHON: "C:\\Python36-x64"
CMAKE_GENERATOR_BASE: "Visual Studio 15 2017"
NAME_SUFFIX: "windows"
USE_CONAN: 1
platform:
- x64
configuration:
- RelWithDebInfo
matrix:
fast_finish: false
clone_folder: C:\projects\openrw
init:
- set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
- python --version
- cmake --version
- msbuild /version
- pip3 install conan
- conan user
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
install:
- cd "%APPVEYOR_BUILD_FOLDER%"
- for /f %%i in ('git rev-parse HEAD') do set COMMIT_HASH=%%i
- 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"
- git submodule update --init --recursive
build_script:
- ctest -VV -S "%APPVEYOR_BUILD_FOLDER%/cmake/ctest/script_ci.ctest"
after_build:
- cd "%APPVEYOR_BUILD_FOLDER%\build"
- cpack -C %CONFIGURATION% -G TXZ
- appveyor PushArtifact OpenRW-%COMMIT_HASH:~0,8%.tar.xz