]>
Commit | Line | Data |
---|---|---|
da279f96 AS |
1 | # There is a pre-installed cygwin: http://help.appveyor.com/discussions/suggestions/427-pre-install-cygwin |
2 | # But it's old and misses some stuff anyway | |
3 | # | |
da279f96 AS |
4 | # TODO: test msvc |
5 | version: 0.0.0.0.1-branch-{branch}-build-{build} | |
6 | clone_depth: 10 | |
da279f96 | 7 | install: |
1016c44c | 8 | - ps: Invoke-WebRequest https://cygwin.com/setup-x86_64.exe -OutFile c:\cygwin-setup.exe |
55a25ec6 | 9 | # libcrypt-devel is needed only on x86_64 and only for modperl... probably some dependency problem. |
a1a254be | 10 | - c:\cygwin-setup.exe --quiet-mode --no-shortcuts --no-startmenu --no-desktop --upgrade-also --only-site --site http://cygwin.mirror.constant.com/ --root c:\cygwin-root --local-package-dir c:\cygwin-setup-cache --packages gcc-g++,make,pkg-config,wget,libssl-devel,libicu-devel,zlib-devel,libcrypt-devel,perl,python3-devel,swig,libsasl2-devel,libQt5Core-devel,cmake,libboost-devel,gettext-devel,libargon2-devel |
55a25ec6 AS |
11 | - c:\cygwin-root\bin\sh -lc "echo Hi" |
12 | - c:\cygwin-root\bin\sh -lc "uname -a" | |
13 | - c:\cygwin-root\bin\sh -lc "cat /proc/cpuinfo" | |
14 | - c:\cygwin-root\bin\sh -lc "cat /proc/meminfo" | |
55a25ec6 | 15 | - c:\cygwin-root\bin\sh -lc "cygcheck -s -v > $APPVEYOR_BUILD_FOLDER/cygcheck.log 2>&1" |
da279f96 AS |
16 | - ps: Push-AppveyorArtifact cygcheck.log |
17 | # stdin is broken at AppVeyor, so we open it explicitly as /dev/null | |
18 | build_script: | |
19 | - git submodule update --init | |
da279f96 | 20 | - mkdir build |
6aef3155 | 21 | - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; ../configure --enable-charset --enable-zlib --enable-openssl --enable-perl --enable-python --enable-cyrus --enable-argon < /dev/null; result=$?; cmake --system-information > config.log; appveyor PushArtifact config.log; exit $result" |
55a25ec6 AS |
22 | - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; make VERBOSE=1 -j2 < /dev/null" |
23 | - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; make install < /dev/null" | |
24 | - c:\cygwin-root\bin\sh -lc "znc --version" | |
2eb1164f AS |
25 | # fix fork() |
26 | - c:\cygwin-root\bin\sh -lc "find /usr/local/lib/znc -iname '*.dll' -o -iname '*.so' | tee /tmp/files-to-rebase" | |
08ca309f | 27 | - c:\cygwin-root\bin\sh -lc "rebase -s -v $(cat /tmp/files-to-rebase)" |
da279f96 | 28 | test_script: |
dd42fcd2 AS |
29 | - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; make VERBOSE=1 unittest < /dev/null" |
30 | - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; make VERBOSE=1 inttest < /dev/null" |