]> jfr.im git - irc/evilnet/znc.git/blob - .appveyor.yml
Merge pull request #1383 from Phansa/master
[irc/evilnet/znc.git] / .appveyor.yml
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 #
4 # TODO: test msvc
5 version: 0.0.0.0.1-branch-{branch}-build-{build}
6 clone_depth: 10
7 cache:
8 - c:\cygwin-setup-cache
9 environment:
10 matrix:
11 - cygwin_url: https://cygwin.com/setup-x86_64.exe
12 build_with: cmake
13 - cygwin_url: https://cygwin.com/setup-x86.exe
14 build_with: cmake
15 - cygwin_url: https://cygwin.com/setup-x86_64.exe
16 build_with: autoconf
17 - cygwin_url: https://cygwin.com/setup-x86.exe
18 build_with: autoconf
19 install:
20 - ps: Invoke-WebRequest $env:cygwin_url -OutFile c:\cygwin-setup.exe
21 # libcrypt-devel is needed only on x86_64 and only for modperl... probably some dependency problem.
22 - 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 automake,gcc-g++,make,pkg-config,wget,openssl-devel,libicu-devel,zlib-devel,libcrypt-devel,perl,python3-devel,swig,libsasl2-devel,libQt5Core-devel,cmake,libboost-devel,gettext-devel
23 - c:\cygwin-root\bin\sh -lc "echo Hi"
24 - c:\cygwin-root\bin\sh -lc "uname -a"
25 - c:\cygwin-root\bin\sh -lc "cat /proc/cpuinfo"
26 - c:\cygwin-root\bin\sh -lc "cat /proc/meminfo"
27 - c:\cygwin-root\bin\sh -lc "cygcheck -s -v > $APPVEYOR_BUILD_FOLDER/cygcheck.log 2>&1"
28 - ps: Push-AppveyorArtifact cygcheck.log
29 - ps: |
30 if ($env:build_with -eq "cmake") {
31 $env:cfg_suffix = ".sh"
32 $env:unittest = "unittest"
33 $env:inttest = "inttest"
34 } else {
35 $env:cfg_suffix = ""
36 $env:unittest = "test"
37 $env:inttest = "test2"
38 }
39 # stdin is broken at AppVeyor, so we open it explicitly as /dev/null
40 build_script:
41 - git submodule update --init
42 - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER; ./autogen.sh < /dev/null"
43 - mkdir build
44 - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; ../configure$cfg_suffix --enable-charset --enable-zlib --enable-openssl --enable-perl --enable-python --enable-cyrus < /dev/null; result=$?; if [[ $build_with == cmake ]]; then cmake --system-information > config.log; fi; appveyor PushArtifact config.log; exit $result"
45 - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; make VERBOSE=1 -j2 < /dev/null"
46 - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; make install < /dev/null"
47 - c:\cygwin-root\bin\sh -lc "znc --version"
48 # fix fork()
49 - c:\cygwin-root\bin\sh -lc "find /usr/local/lib/znc -iname '*.dll' -o -iname '*.so' | tee /tmp/files-to-rebase"
50 - c:\cygwin-root\bin\sh -lc "rebaseall -v -T /tmp/files-to-rebase"
51 test_script:
52 - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; make VERBOSE=1 $unittest < /dev/null"
53 - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; make VERBOSE=1 $inttest < /dev/null"