-
-
Notifications
You must be signed in to change notification settings - Fork 240
/
.appveyor.yml
124 lines (117 loc) · 4.54 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
version: 0.13.3.{build}
max_jobs: 4
image: Visual Studio 2019
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: x64
ARCH: cygwin64
ISETUP: setup-x86_64
global:
CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
matrix:
allow_failures:
- CYGWIN: 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
#- set CYG_PY=python27-devel,python27-libxml2,python36-devel,python36-libxml2
#- if "%PLATFORM%"=="x64" set CYG_PY=python36-devel,python36-libxml2
- 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,swig,help2man,libcrypt-devel,libpcre2-devel,pcre2
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 "%CYGWIN%"=="1" git config --system --add safe.directory /cygdrive/c/projects/libredwg
#- if "%CYGWIN%"=="1" if "%PLATFORM%"=="x86" set CFG_ARG=--disable-python
#- if "%CYGWIN%"=="1" set CFG_ARG=--enable-python=python3.6m
#-bash -c "rm /usr/bin/python{,2,2.7.exe}; ls -al /usr/bin/python*"
- if "%MINGW%"=="1" call build-aux\msys2.bat
- bash -c "sh ./autogen.sh"
- if "%CYGWIN%"=="1" bash -c "./configure --disable-static --disable-werror --disable-python || cat config.log"
- if not "%CYGWIN%"=="1" bash -c "CFLAGS=-fstack-protector ./configure --disable-static || cat config.log"
- bash -c "make V=1"
test_script:
- if not "%CYGWIN%"=="1" bash -c "make check"
- if "%CYGWIN%"=="1" bash -c "make check -C programs && make check -C examples"
- 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