forked from e8tools/tool1cd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
145 lines (105 loc) · 3.83 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
version: 1.0.0.{build}
pull_requests:
do_not_increment_build_number: true
clone_depth: 1
environment:
MY_BOOST_ROOT: C:\projects\boost
MY_BOOST_INCLUDEDIR: C:\projects\boost
MY_BOOST_LIBRARYDIR: C:\projects\boost\stage\lib
matrix:
- ID: minw32-x86-boost1.63
GENERATOR: MinGW Makefiles
BOOST_VERSION: 1_63_0
BOOST_DOT_VERSION: 1.63.0
MINGW_ROOT: C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32
ADD_PATH: C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin
BOOST_TOOLSET: gcc
ALLOW_FAILURE: no
QT_PATH: C:\Qt\5.10.1\mingw53_32
MY_Qt5Widgets_DIR: C:\Qt\5.10.1\mingw53_32\lib\cmake\Qt5Widgets
init:
- ps: Set-WinSystemLocale ru-RU
- ps: Start-Sleep -s 5
- ps: Restart-Computer
install:
- cmd: >-
echo %PATH%
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%;%ADD_PATH%
cd ..
curl -o boost.7z -L
https://sourceforge.net/projects/boost/files/boost/%BOOST_DOT_VERSION%/boost_%BOOST_VERSION%.7z/download
7z x boost.7z
rename boost_%BOOST_VERSION% boost
- cmd: >-
cd boost
.\bootstrap.bat
.\b2.exe toolset=%BOOST_TOOLSET% runtime-link=shared threading=multi
--with-system --with-filesystem --with-regex --with-program_options
.\b2.exe toolset=%BOOST_TOOLSET% runtime-link=static threading=single
--with-system --with-filesystem --with-regex --with-program_options
cd %APPVEYOR_BUILD_FOLDER%
build_script:
- cmd: >-
mkdir tool1cd
cd tool1cd
cmake -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=Release
-DBOOST_ROOT="%MY_BOOST_ROOT%"
-DBOOST_LIBRARYDIR="%MY_BOOST_LIBRARYDIR%"
-DBOOST_INCLUDEDIR="%MY_BOOST_INCLUDEDIR%"
-DQt5Widgets_DIR="%MY_Qt5Widgets_DIR%"
-DZLIB_INCLUDE_DIR="%MINGW_ROOT%\\i686-w64-mingw32\include"
-DZLIB_LIBRARY="%MINGW_ROOT%\i686-w64-mingw32\lib\libz.a" ..
cmake --build . --target gtool1cd
cmake --build . --target ctool1cd
cd ..
- cmd: >-
del /f /q %MINGW_ROOT%\i686-w64-mingw32\lib\libpthread.dll.a
mkdir testproject
cd testproject
cmake -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=Release -DNOGUI=YES
-DBOOST_ROOT="%MY_BOOST_ROOT%"
-DBOOST_LIBRARYDIR="%MY_BOOST_LIBRARYDIR%"
-DBOOST_INCLUDEDIR="%MY_BOOST_INCLUDEDIR%"
-DQt5Widgets_DIR="%MY_Qt5Widgets_DIR%"
-DZLIB_INCLUDE_DIR="%MINGW_ROOT%\\i686-w64-mingw32\include"
-DZLIB_LIBRARY="%MINGW_ROOT%\i686-w64-mingw32\lib\libz.a" ..
cmake --build . --target testproject
cd ..
- cmd: >-
del /f /q %MINGW_ROOT%\i686-w64-mingw32\lib\libpthread.dll.a
mkdir ctool1cd
cd ctool1cd
cmake -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=Release -DNOGUI=YES
-DBOOST_ROOT="%MY_BOOST_ROOT%"
-DBOOST_LIBRARYDIR="%MY_BOOST_LIBRARYDIR%"
-DBOOST_INCLUDEDIR="%MY_BOOST_INCLUDEDIR%"
-DQt5Widgets_DIR="%MY_Qt5Widgets_DIR%"
-DZLIB_INCLUDE_DIR="%MINGW_ROOT%\\i686-w64-mingw32\include"
-DZLIB_LIBRARY="%MINGW_ROOT%\i686-w64-mingw32\lib\libz.a" ..
cmake --build . --target ctool1cd
cd ..
test_script:
- testproject\bin\testproject.exe --reporter junit --out junit.xml
on_finish:
- ps: >-
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\junit.xml))
after_build:
- cmd: >-
SET PATH=%PATH%;"%WIX%/bin";"%QT_PATH%/bin"
windeployqt.exe --release --no-compiler-runtime --no-translations
--no-system-d3d-compiler --no-opengl-sw --no-angle --no-patchqt
tool1cd\bin\gtool1cd.exe
call .\windeploycrt.cmd %QT_PATH%\bin tool1cd\bin
xcopy COPYING tool1cd\bin
7z a -r tool1cd-%APPVEYOR_BUILD_VERSION%.zip tool1cd\bin
candle tool1cd.wxs
light -out tool1cd-%APPVEYOR_BUILD_VERSION%.msi tool1cd.wixobj
artifacts:
- path: ctool1cd\bin\ctool1cd.exe
name: ctool1cd.exe
- path: tool1cd-*.zip
name: tool1cd.zip
- path: tool1cd-*.msi
name: installer
deploy: off