forked from paceholder/nodeeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
69 lines (58 loc) · 1.71 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
clone_depth: 5
environment:
matrix:
- GENERATOR : "Visual Studio 16 2019"
ARCHITECTURE : "-A x64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
QTDIR: C:\Qt\5.14.0\msvc2017_64
PLATFORM: x64
- GENERATOR : "Visual Studio 15 2017"
ARCHITECTURE : ""
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
QTDIR: C:\Qt\5.13.2\msvc2017
PLATFORM: Win32
- GENERATOR : "MinGW Makefiles"
ARCHITECTURE : ""
QTDIR: C:\Qt\5.11.3\mingw53_32
PLATFORM: x86
CMAKE_CXX_FLAGS_INIT: -DCATCH_CONFIG_NO_CPP11_TO_STRING
configuration:
- Release
install:
- set PATH=%QTDIR%\bin;%PATH%
- set Qt5_DIR=%QTDIR%\lib\cmake\Qt5
- set PATH=C:\MinGW\bin;C:\MinGW\msys\1.0;%PATH%
- set PATH=C:\Qt\Tools\mingw530_32;%PATH%
- set PATH=%PATH:C:\Program Files\Git\usr\bin=% # trick to remove sh.exe
before_build:
- mkdir build
- cd build
- mkdir bin
- set OUTPUT_DIR=%cd%\bin
- cmake "-G%GENERATOR%" %ARCHITECTURE%
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG="%OUTPUT_DIR%"
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE="%OUTPUT_DIR%"
-DCMAKE_CXX_FLAGS_INIT="%CMAKE_CXX_FLAGS_INIT%"
..
build_script:
- cmake --build .
test_script:
- ps: $env:isX86 = $env:PLATFORM.Contains("x86")
- IF %isX86% == False ctest --output-on-failure -C Debug
after_build:
- 7z a examples.zip %APPVEYOR_BUILD_FOLDER%/build/bin
- cmd: cd
- cmd: dir \S \P "examples.zip"
artifacts:
- path: build\examples.zip
name: ex
#deploy:
#release: $(APPVEYOR_REPO_TAG_NAME)
#provider: GitHub
#artifact: /.*\.exe/
#auth_token:
#secure: j0nBV9xVItdG3j6d0gHoyvrzi7TOhAy9/QIeyCbFeP8PTqq7DPr1oYwL5WIkPaXe
#draft: false
#prerelease: false
#on:
#appveyor_repo_tag: true