Skip to content

Commit a35281a

Browse files
authored
Add configuration to build on Appveyor (msys2) (etr#200)
1 parent 51b343c commit a35281a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

appveyor.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
platform: x64
2+
3+
branches:
4+
except:
5+
- /.*travis.*/
6+
skip_commits:
7+
message: /travis/
8+
files:
9+
- .travis.yml
10+
11+
environment:
12+
matrix:
13+
- compiler: msys2
14+
MINGW_CHOST: x86_64-w64-mingw32
15+
MSYS2_ARCH: x86_64
16+
init:
17+
- 'echo Building libhttpserver %version% for Windows'
18+
- 'echo System architecture: %PLATFORM%'
19+
- 'echo Repo build branch is: %APPVEYOR_REPO_BRANCH%'
20+
- 'echo Build folder is: %APPVEYOR_BUILD_FOLDER%'
21+
- 'echo Repo build commit is: %APPVEYOR_REPO_COMMIT%'
22+
- 'echo Cygwin root is: %CYG_ROOT%'
23+
install:
24+
- 'if "%compiler%"=="msys2" C:\msys64\msys2_shell.cmd -defterm -no-start -msys2 -c "pacman --noconfirm --force -S --needed mingw-w64-$MSYS2_ARCH-{libtool,make,pkg-config,libsystre,doxygen,gnutls,graphviz,curl}"'
25+
- 'if "%compiler%"=="msys2" C:\msys64\msys2_shell.cmd -defterm -no-start -mingw64 -full-path -here -c "cd $APPVEYOR_BUILD_FOLDER && curl https://s3.amazonaws.com/libhttpserver/libmicrohttpd_releases/libmicrohttpd-0.9.59.tar.gz -o libmicrohttpd-0.9.59.tar.gz"'
26+
- 'if "%compiler%"=="msys2" C:\msys64\msys2_shell.cmd -defterm -no-start -mingw64 -full-path -here -c "cd $APPVEYOR_BUILD_FOLDER && tar -xzf libmicrohttpd-0.9.59.tar.gz"'
27+
- 'if "%compiler%"=="msys2" C:\msys64\msys2_shell.cmd -defterm -no-start -mingw64 -full-path -here -c "cd $APPVEYOR_BUILD_FOLDER/libmicrohttpd-0.9.59 && ./configure --disable-examples --enable-poll=no --prefix /C/msys64 && make && make install"'
28+
- 'if "%compiler%"=="msys2" C:\msys64\msys2_shell.cmd -defterm -no-start -mingw64 -full-path -here -c "cd $APPVEYOR_BUILD_FOLDER && ./bootstrap"'
29+
- 'if "%compiler%"=="msys2" C:\msys64\msys2_shell.cmd -defterm -no-start -mingw64 -full-path -here -c "cd $APPVEYOR_BUILD_FOLDER && mkdir build && cd build && MANIFEST_TOOL=no; ../configure --disable-fastopen --prefix /C/msys64 CXXFLAGS=-I/C/msys64/include LDFLAGS=-L/C/msys64/lib; make"'
30+
build_script:
31+
- 'if "%compiler%"=="msys2" C:\msys64\msys2_shell.cmd -defterm -no-start -mingw64 -full-path -here -c "cd $APPVEYOR_BUILD_FOLDER/build && make check"'
32+
- 'if "%compiler%"=="msys2" C:\msys64\msys2_shell.cmd -defterm -no-start -mingw64 -full-path -here -c "cd $APPVEYOR_BUILD_FOLDER/build && cat test/test-suite.log"'

0 commit comments

Comments
 (0)