platform:
  - x64
environment:
  global:
    MSYS2_BASEVER: 20150512
  matrix:
    - MSYS2_ARCH: x86_64
      MSYS2_BITS: 64
      MSYSTEM: MINGW64
    - MSYS2_ARCH: i686
      MSYS2_BITS: 32
      MSYSTEM: MINGW32
install:
  - appveyor DownloadFile "http://kent.dl.sourceforge.net/project/msys2/Base/%MSYS2_ARCH%/msys2-base-%MSYS2_ARCH%-%MSYS2_BASEVER%.tar.xz" -FileName "msys2.tar.xz"
  - 7z x msys2.tar.xz
  - 7z x msys2.tar > NUL
  - msys%MSYS2_BITS%\usr\bin\bash -lc ""
  - msys%MSYS2_BITS%\usr\bin\bash -lc "for i in {1..3}; do pacman --noconfirm -Suy autoconf automake pkg-config gcc make zlib-devel && break || sleep 15; done"
  - msys%MSYS2_BITS%\autorebase.bat
build_script:
  - msys%MSYS2_BITS%\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; ./autogen.sh; ./configure; make check"
# disable automatic tests
test: off

platform:
  - x86

install:
  - set PATH=C:\cygwin\bin;%PATH%
  - appveyor DownloadFile "http://raw.githubusercontent.com/swig/cccl/master/cccl"
  - appveyor DownloadFile "http://zlib.net/zlib128-dll.zip"
  - 7z x -ozlib zlib128-dll.zip
  - copy zlib\lib\zdll.lib zlib\lib\z.lib # FIXME
  - call "%VS120COMNTOOLS%\..\..\VC\vcvarsall.bat" %PLATFORM%

build_script:
  - set CC=./cccl
  - set CXX=./cccl
  - bash -c "exec 0</dev/null; ./autogen.sh; ./configure --with-zlib=zlib; make CXXFLAGS='-D_HAS_EXCEPTIONS=0 -D_STATIC_CPPLIB'"

# disable automatic tests
test: off

Build on AppVeyor with MSVC
[ci] Build on AppVeyor with MSVC

Closes #72.
