forked from e8tools/tool1cd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
83 lines (64 loc) · 2.1 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
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
MY_Qt5Widgets_DIR: C:\Qt\5.10.0\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% --with-system --with-filesystem --with-regex --with-program_options
cd %APPVEYOR_BUILD_FOLDER%
build_script:
- cmd: >-
cmake -G "%GENERATOR%" -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 . --config Release
test_script:
- 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"
candle tool1cd.wxs
light -out tool1cd-%APPVEYOR_BUILD_VERSION%.msi tool1cd.wixobj
artifacts:
- path: bin\ctool1cd.exe
name: ctool1cd.exe
- path: bin\gtool1cd.exe
name: gtool1cd.exe
- path: tool1cd-*.msi
name: installer
deploy: off