forked from vszakats/hb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
135 lines (135 loc) · 7.79 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
version: 3.4.{build}
branches:
only:
- master
skip_tags: true
os: Windows Server 2012 R2
clone_depth: 8
clone_folder: C:\hb\
environment:
HB_VF: daily
matrix:
# - HB_COMPILER: msvc64
# - HB_COMPILER: msvc
# - HB_COMPILER: mingw64
- HB_COMPILER: mingw
GITHUB_TOKEN:
secure: EAvrbP8pR3X0XMvu+PtEpAsTS5hh7jWZl5T+6sLOuCUqmyTLxNY8P2JPYMidRbpf
VIRUSTOTAL_APIKEY:
secure: TdJYONfrpH45DuyKxraVqgHYy25IQ/F8TKHzYf+u5zz1aiM2yR0YTMaGxyj2EMReEearSI9kD9D2ZykybSVEbRyEaotZlceUb2lPDKELl3M=
install:
- set VER_CURL=7.46.0
- set VER_OPENSSL=1.0.2e
- ps: rm alias:curl
# Use the _native_ curl build provided by Git for Windows because the default,
# msys one in 'usr\bin' fails in spectacular ways in the PATCH request.
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- mkdir C:\w\
- curl -fsS https://www.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/s/se/sevenzip/7-Zip/9.20/7za920.zip -o 7z.7z
- openssl dgst -sha256 7z.7z | findstr /i /c:2a3afe19c180f8373fa02ff00254d5394fec0349f5804e0ad2f6067854ff28ac
- 7z x -y -oC:\w\7z 7z.7z > nul
- curl -fsS http://7zsfx.info/files/7zsd_150_2712.7z -o 7zsfx.7z
- openssl dgst -sha256 7zsfx.7z | findstr /i /c:e5a2a05997553cde6318149951da1e449b0fd277a6e671ac06bfde8572754739
- 7z x -y -oC:\w\7zsfx 7zsfx.7z > nul
- curl -fsS -L --proto-redir =https https://fossies.org/windows/misc/upx391w.zip -o upx.zip
- openssl dgst -sha256 upx.zip | findstr /i /c:d7d4817f46d2616c209c46fb8bce44e4bec93ab5adef5e4dfc93ee879527be1b
- 7z e -y -oC:\w\upx upx.zip > nul
#- ps: curl -fsS https://www.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw-w64/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/5.2.0/threads-posix/dwarf/i686-5.2.0-release-posix-dwarf-rt_v4-rev0.7z -o mingw.7z
#- openssl dgst -sha256 mingw.7z | findstr /i /c:25de3b1164df7a3d06978900664462fa2f651036491291d90ca8870be451f439
#- ps: curl -fsS https://www.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw-w64/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/5.2.0/threads-posix/seh/x86_64-5.2.0-release-posix-seh-rt_v4-rev0.7z -o mingw.7z
#- openssl dgst -sha256 mingw.7z | findstr /i /c:3876e8a73218f07761f0f2966725510dfc7294160ba728d1a0e6bdfca93f03f5
- ps: curl -fsS https://www.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw-w64/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/5.2.0/threads-posix/sjlj/x86_64-5.2.0-release-posix-sjlj-rt_v4-rev0.7z -o mingw.7z
- openssl dgst -sha256 mingw.7z | findstr /i /c:c0536c55a1d12882987afd0a9be377413eaf6cee105e921c949899fa9b308b35
# Will unpack into C:\w\mingw64
- 7z x -y -oC:\w\ mingw.7z > nul
- curl -fsS -L --proto-redir =https https://dl.bintray.com/vszakats/generic/openssl-%VER_OPENSSL%-win32-mingw.7z -o openssl-win-mingw.7z
- openssl dgst -sha256 openssl-win-mingw.7z | findstr /i /c:f9191a81fedbc42eae6249b838ffbab24e43ab17dcc47b7902bbacde4998b8ec
- 7z x -y -oC:\w\ openssl-win-mingw.7z > nul
- curl -fsS -L --proto-redir =https https://dl.bintray.com/vszakats/generic/openssl-%VER_OPENSSL%-win64-mingw.7z -o openssl-win-mingw64.7z
- openssl dgst -sha256 openssl-win-mingw64.7z | findstr /i /c:82d25df66124ca94b3c52545a0cc3266f2db8f1bcc758709d922aaa32477f5c0
- 7z x -y -oC:\w\ openssl-win-mingw64.7z > nul
- curl -fsS -L --proto-redir =https https://dl.bintray.com/vszakats/generic/curl-%VER_CURL%-win32-mingw.7z -o curl-win-mingw.7z
- openssl dgst -sha256 curl-win-mingw.7z | findstr /i /c:fba8de622143023639c23530e91ff6d1b44eaae07cd33622d35bf6285a8d98c8
- 7z x -y -oC:\w\ curl-win-mingw.7z > nul
- curl -fsS -L --proto-redir =https https://dl.bintray.com/vszakats/generic/curl-%VER_CURL%-win64-mingw.7z -o curl-win-mingw64.7z
- openssl dgst -sha256 curl-win-mingw64.7z | findstr /i /c:021a49f54f0ba1799d0386b2289ec1512a58a474d1ab1a9b1f0f162cf2542be8
- 7z x -y -oC:\w\ curl-win-mingw64.7z > nul
# Change to ISO date and 24-hour time format
- reg add "HKCU\Control Panel\International" /v sShortDate /t REG_SZ /d yyyy-MM-dd /f
- reg add "HKCU\Control Panel\International" /v sShortTime /t REG_SZ /d HH:mm /f
build_script:
- set HB_SFX_7Z=C:\w\7zsfx\7zsd.sfx
- set HB_DIR_7Z=C:\w\7z\
- set HB_DIR_UPX=C:\w\upx\
- set HB_DIR_MINGW=C:\w\mingw64
- set _ORI_PATH=%PATH%
- if "%HB_COMPILER:~0,5%" == "mingw" set PATH=%HB_DIR_MINGW%\bin;%PATH%
- if "%HB_COMPILER%" == "mingw" set HB_CPU=x86
- if "%HB_COMPILER%" == "mingw64" set HB_CPU=x86_64
- if "%HB_COMPILER%" == "msvc" if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
- if "%HB_COMPILER%" == "msvc" if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
- if "%HB_COMPILER%" == "msvc64" if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
- if "%HB_COMPILER%" == "msvc64" if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
#- if "%HB_COMPILER:~0,4%" == "msvc" set _HB_MSVC_ANALYZE=yes
- if "%HB_COMPILER%" == "mingw" set HB_WITH_CURL=C:\w\curl-%VER_CURL%-win32-mingw\include
- if "%HB_COMPILER%" == "mingw" set HB_WITH_OPENSSL=C:\w\openssl-%VER_OPENSSL%-win32-mingw\include
#- if "%HB_COMPILER%" == "mingw" set HB_WITH_QT=C:\w\Qt\5.4\mingw491_32\include
- if "%HB_COMPILER%" == "mingw64" set HB_WITH_CURL=C:\w\curl-%VER_CURL%-win64-mingw\include
- if "%HB_COMPILER%" == "mingw64" set HB_WITH_OPENSSL=C:\w\openssl-%VER_OPENSSL%-win64-mingw\include
#- if "%HB_COMPILER%" == "msvc" set HB_WITH_QT=C:\w\Qt\5.4\msvc2013_64_opengl\include
#- if "%HB_COMPILER%" == "msvc64" set HB_WITH_QT=C:\w\Qt\5.4\msvc2013_64_opengl\include
- if "%HB_COMPILER:~0,5%-%HB_BUILD_MODE%" == "mingw-cpp" set HB_USER_LDFLAGS=-static-libgcc -static-libstdc++
#- set HB_WITH_ADS=C:\w\ads\acesdk
#- set HB_WITH_CAIRO=C:\w\cairo\include\cairo
#- set HB_WITH_FIREBIRD=C:\w\firebird\include
#- set HB_WITH_FREEIMAGE=C:\w\freeimage\Dist
#- set HB_WITH_GD=C:\w\gd\include
#- set HB_WITH_MYSQL=C:\w\mariadb\include\mysql
#- set HB_WITH_OCILIB=C:\w\ocilib\include
#- set HB_WITH_PGSQL=C:\w\pgsql\include
#- set HB_BUILD_CONTRIBS=no
- set HB_INSTALL_3RDDYN=yes
- set HB_BUILD_STRIP=bin
- set HB_BUILD_CONTRIB_DYN=yes
- set HB_BUILD_PKG=yes
- set HB_BUILD_POSTRUN=".\hbtest -noenv" ".\hbspeed --noenv --stdout"
- set _HB_BUILD_PKG_ARCHIVE=no
#- set _HB_PKG_DEBUG=yes
- win-make.exe clean install HB_VERSION=%HB_VF%
- set HB_COMPILER=mingw64
- set HB_CPU=x86_64
- set HB_WITH_CURL=C:\w\curl-%VER_CURL%-win64-mingw\include
- set HB_WITH_OPENSSL=C:\w\openssl-%VER_OPENSSL%-win64-mingw\include
- win-make.exe clean install HB_VERSION=%HB_VF%
#- set HB_COMPILER=
#- set HB_CPU=
#- set HB_WITH_CURL=
#- set HB_WITH_OPENSSL=
#- set PATH=%_ORI_PATH%
#- call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
#- win-make.exe clean install HB_VERSION=%HB_VF%
#- set PATH=%_ORI_PATH%
#- call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
#- win-make.exe clean install HB_VERSION=%HB_VF%
- call package\mpkg_win.bat
artifacts:
- path: harbour-daily-win.7z.exe
name: pkg-win
before_deploy:
- cmd: 'curl -sS -H "Authorization: token %GITHUB_TOKEN%" -X PATCH https://api.github.com/repos/vszakats/harbour-core/git/refs/tags/v3.4.0dev -d @git_tag_patch.json'
deploy:
- provider: GitHub
auth_token: $(github_token)
tag: v3.4.0dev
release: 'Harbour 3.4.0dev daily'
description: 'Snapshot build generated after each commit.'
artifact: pkg-win
draft: false
prerelease: true
on:
branch: master
appveyor_repo_tag: false
after_deploy:
- curl -fsS -X POST https://www.virustotal.com/vtapi/v2/file/scan --form apikey=%VIRUSTOTAL_APIKEY% --form file=@harbour-daily-win.7z.exe
build:
verbosity: detailed