forked from eryar/libredwg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
120 lines (113 loc) · 3.9 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
version: 0.4.{build}
max_jobs: 4
environment:
matrix:
- MINGW: 1
MSYS2_ARCH: x86_64
MSYSTEM: MINGW64
ARCH: win64
PLATFORM: x64
- MINGW: 1
MSYS2_ARCH: i686
MSYSTEM: MINGW32
ARCH: win32
PLATFORM: x86
- CYGWIN: 1
PLATFORM: x86
ARCH: cygwin32
ISETUP: setup-x86
- CYGWIN: 1
PLATFORM: x64
ARCH: cygwin64
ISETUP: setup-x86_64
global:
CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
#matrix:
# allow_failures:
# - MINGW: 1
clone_depth: 1
# we tag only already tested and deployed commits
skip_tags: true
branches:
only:
- master
- /^smoke/
- /^win-/
init:
- git config --global core.autocrlf input
# Disable popups as they hang the build as there is nobody to click on the OK button...
# Hanging the build is a lot less user friendly than reporting a build failure.
#
# Disable of system hard error popup
# See: https://msdn.microsoft.com/en-us/library/bb513638%28VS.85%29.aspx
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\Windows" /f /v ErrorMode /d 2
# Disable the following popup on program failure:
# | ** <program name> has stopped working ** |
# | Windows can check online for a solution to the problem|
# | - Check online for a solution and close the program |
# | - Close the program |
# See: https://msdn.microsoft.com/en-us/library/bb513638%28VS.85%29.aspx
- reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /f /v DontShowUI /d 1
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# git bash conflicts with MinGW makefiles, esp. the space in 'Program Files'
- set "PATH=%PATH:C:\Program Files\Git\usr\bin;=%"
- if "%MINGW%"=="1" set PROCESSOR_ARCHITECTURE=%PLATFORM%
- if "%PLATFORM%"=="x64" set PROCESSOR_ARCHITECTURE=AMD64
- set P=
- if "%PLATFORM%"=="x64" set P=64
- if "%CYGWIN%"=="1" set CYG_ROOT=c:\cygwin%P%
- if "%CYGWIN%"=="1" appveyor DownloadFile http://cygwin.com/%ISETUP%.exe -FileName %CYG_ROOT%\setup.exe
- if "%CYGWIN%"=="1" %CYG_ROOT%\setup.exe -qnNdO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_ROOT%\var\cache\setup" -P libxml2,libxml2-devel,libiconv-devel,python2-devel,python2-libxml2,swig,help2man,libcrypt-devel
# skip dejagnu. fails to link
build_script:
- if "%CYGWIN%"=="1" set PATH=%CYG_ROOT%\bin;c:\Windows\system32;c:\Windows;c:\Windows\system32\Wbem
- if "%CYGWIN%"=="1" %CYG_ROOT%\bin\sh -lc "cygcheck -dc cygwin"
- if "%MINGW%"=="1" call build-aux\msys2.bat
- bash -c "sh ./autogen.sh"
- bash -c "./configure"
- bash -c "make"
test_script:
- bash -c "make check"
- if "%MINGW%"=="1" call build-aux\appveyor-deploy.bat
#before_deploy:
# - if "%MINGW%"=="1" call build-aux\appveyor-deploy.bat
artifacts:
# nightlies
- path: libredwg-$(APPVEYOR_BUILD_VERSION)-win32.zip
name: nightly-win32
type: zip
- path: libredwg-$(APPVEYOR_BUILD_VERSION)-win64.zip
name: nightly-win64
type: zip
# tagged
- path: libredwg-$(APPVEYOR_REPO_TAG_NAME)-win32.zip
name: tagged-win32
type: zip
- path: libredwg-$(APPVEYOR_REPO_TAG_NAME)-win64.zip
name: tagged-win64
type: zip
deploy:
- provider: GitHub
tag: $(APPVEYOR_BUILD_VERSION)
description: 'libredwg windows nightly'
auth_token:
secure: AsIAOIgCJX0QhrUKal2V00aaB5nRWtmtFTFeDVsGnbJLeEQpv9avUp0HT1cA8bNs
artifact: nightly-win32,nightly-win64
#draft: true
prerelease: true
force_update: true
on:
branch: /(master|relprep|deploy-test)/
- provider: GitHub
tag: $(APPVEYOR_REPO_TAG_NAME)
description: 'libredwg windows tagged'
auth_token:
secure: AsIAOIgCJX0QhrUKal2V00aaB5nRWtmtFTFeDVsGnbJLeEQpv9avUp0HT1cA8bNs
artifact: tagged-win32,tagged-win64
#draft: true
#force_update: true
on:
appveyor_repo_tag: true
# 80GB quota
after_deploy:
- del libredwg-*.zip