-
Notifications
You must be signed in to change notification settings - Fork 36
/
.appveyor.yml
70 lines (57 loc) · 1.74 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: 1.0.{build}
clone_folder: C:\projects\PolyEngine
image:
- Visual Studio 2017
configuration:
# - Release # Disabled for now due to long build times and lack of parallelism
- Debug
platform:
- x64
environment:
matrix:
- arch: Win64
QTDIR: C:\Qt\5.10.1\msvc2017_64
PYTHON: C:\Python36
PATH: '%PATH%;%QTDIR%\bin;'
# - arch: #does not work, Release|x64 not a valid target
matrix:
fast_finish: true
# skip unsupported combinations
init:
- set arch=
- if "%arch%"=="Win64" ( set arch= Win64)
- echo %arch%
- echo %QTDIR%
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017%arch%" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set generator="Visual Studio 14 2015%arch%" )
- echo %generator%
- "%PYTHON%\\python.exe -m pip install gitpython"
before_build:
- cmd: |-
cd C:\projects\PolyEngine\PolyEngine\Scripts
cmake --version
- "%PYTHON%\\python.exe --version"
- "%PYTHON%\\python.exe .\\InitializeSubmodules.py"
- "%PYTHON%\\python.exe .\\ProjectTool.py -p"
build:
project: C:\projects\PolyEngine\PolyEngine\build\PolyEngine.sln
verbosity: minimal
parallel: true
# scripts to run before tests
before_test:
- echo %CONFIGURATION%
- cd C:\projects\PolyEngine\PolyEngine\Dist\%CONFIGURATION%
# to run your custom scripts instead of automatic tests
# UT disabled as for some reason it throws "Command exited with code -1073741515" error on appveyor
# @fixme
test_script:
#- .\PolyUnitTests.exe
notifications:
- provider: Slack
auth_token:
secure: DWi4NgrRL7/v8v7PyZ03XRepd1bk7t482/T7SpHCaELiOt8hWu/pZpgjfUDfXsZA
channel: ci-build
on_build_success: true
on_build_failure: true
on_build_status_changed: false