-
Notifications
You must be signed in to change notification settings - Fork 31
/
.appveyor.yml
50 lines (39 loc) · 1.55 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
image: Visual Studio 2019
environment:
matrix:
- MSYSTEM : MINGW64
MBITS: 64
MARCH: x86_64
- MSYSTEM : MINGW32
MBITS: 32
MARCH: i686
platform:
- x64
install:
# Take a look at the environment
- set "PATH=C:\msys64\usr\bin;C:\msys64\mingw%MBITS%\bin;%PATH%"
- bash -lc ""
- bash -lc "pacman --version"
# Switch from SF to msys2.org (default, much faster)
- bash -lc "pacman --noconfirm --sync pacman-mirrors"
- bash -lc "pacman --noconfirm -S autoconf automake bison flex perl perl-XML-LibXML"
build_script:
## Notes
# * The "exec 0</dev/null" opens a dummy file descriptor to fix error: ./configure: line 560: 0: Bad file descriptor
- set ADMSDIR=c:\adms-win%MBITS%\
## Build
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && ./bootstrap.sh"
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && ./configure --prefix=/c/adms-win%MBITS% --disable-shared"
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && make distcheck"
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && make install"
- bash -lc "exec 0</dev/null && /c/adms-win%MBITS%/bin/admsXml -v"
test_script:
- bash -lc "cd $APPVEYOR_BUILD_FOLDER/testcases && ./testADMS.sh /c/adms-win%MBITS%/bin/admsXml.exe"
after_build:
# artifacts path is always relative to build folder, so put the zip there
- 7z a %APPVEYOR_BUILD_FOLDER%\adms-win%MBITS%.zip %ADMSDIR%
artifacts:
# variables here must use the PowerShell syntax
- path: adms-win$(MBITS).zip
name: adms-win$(MBITS).zip
- path: adms-*.tar.gz