forked from domoticz/domoticz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
77 lines (63 loc) · 2.18 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
version: 1.0.{build}
image: Visual Studio 2022
configuration: Release
platform: x86
# below is to build/use packaged with VCPKG, as this is currently taking to long it is disabled
#environment:
# APPVEYOR_SAVE_CACHE_ON_ERROR: true
# VCPKG_INSTALL_PATH: 'C:\tools\vcpkg\installed'
# VCPKG_COMMIT_ID: '7aebb481085de7387f8a9975652c26f9053f66df'
#
#cache:
#- C:\tools\vcpkg\installed -> msbuild\vcpkg-packages.txt
#- C:\Users\appveyor\clcache -> .appveyor.yml, msbuild\**
#init:
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#
#on_finish:
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# below is to build/use packaged with VCPKG, as this is currently taking to long it is disabled
#install:
#- cd "C:\Tools\vcpkg"
#- git pull
#- .\bootstrap-vcpkg.bat
#- .\vcpkg update
#- .\vcpkg upgrade --no-dry-run
#- .\vcpkg install --triplet %PLATFORM%-windows boost curl jsoncpp lua minizip mosquitto openssl pthreads sqlite3 zlib
#- .\vcpkg integrate install
#- cd %APPVEYOR_BUILD_FOLDER%
before_build:
- ps: >-
nuget install Tools.InnoSetup
- cmd: >-
cd msbuild
appveyor DownloadFile https://raw.githubusercontent.com/domoticz/win32-libraries/master/WindowsLibraries.7z
7z x WindowsLibraries.7z > NUL:
cd ..
build:
parallel: true # enable MSBuild parallel builds
project: msbuild\domoticz.sln # path to Visual Studio solution or project
verbosity: minimal
after_build:
- cd %APPVEYOR_BUILD_FOLDER%
- cp appversion.h version_windows_x86.h
- cp History.txt history_windows_x86.txt
- move Tools.InnoSetup.* Tools.InnoSetup
- Tools.InnoSetup\tools\ISCC msbuild\WindowsInstaller\DomoticzSetup.iss
- msbuild msbuild\package.proj
artifacts:
- path: domoticz_windows_x86.zip
- path: version_windows_x86.h
- path: history_windows_x86.txt
- path: History.txt
test: off
deploy:
- provider: FTP
protocol: sftp
host: $(FTP_HOST)
username: $(FTP_USER)
password: $(FTP_PASSWORD)
folder: beta
on:
APPVEYOR_REPO_NAME: domoticz/domoticz
APPVEYOR_REPO_BRANCH: development