2 # Appveyor configuration file for CI build of Mono on Windows (under Cygwin)
4 # For further details see http://www.appveyor.com
8 # Custom environment variables
13 CYG_MIRROR: http://cygwin.mirror.constant.com
14 CYG_CACHE: C:\cygwin\var\cache\setup
15 CYG_BASH: C:\cygwin\bin\bash
18 # Cache Cygwin files to speed up build
24 # Do a shallow clone of the repo to speed up build
29 # Initialisation prior to pulling the Mono repository
30 # Attempt to ensure we don't try to convert line endings to Win32 CRLF as this will cause build to fail
33 - git config --global core.autocrlf input
36 # Install needed build dependencies
39 - ps: 'Start-FileDownload "http://cygwin.com/setup-x86.exe" -FileName "setup-x86.exe"'
40 - 'setup-x86.exe --quiet-mode --no-shortcuts --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_CACHE%" --packages autoconf,automake,bison,gcc-core,gcc-g++,mingw-runtime,mingw-binutils,mingw-gcc-core,mingw-gcc-g++,mingw-pthreads,mingw-w32api,libtool,make,python,gettext-devel,gettext,intltool,libiconv,pkg-config,git,curl,libxslt > NUL 2>&1'
41 - '%CYG_BASH% -lc "cygcheck -dc cygwin"'
47 # The stdin/stdout file descriptor appears not to be valid for the Appveyor
48 # build which causes failures as certain functions attempt to redirect
49 # default file handles. Ensure a dummy file descriptor is opened with 'exec'.
53 - '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; ./autogen.sh --prefix=/usr/local --host=i686-pc-mingw32"'
54 - '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; make get-monolite-latest"'
55 - '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; make -j2"'
56 - 'echo Installing...'
57 - 'mkdir %APPVEYOR_BUILD_FOLDER%\install'
58 - '%CYG_BASH% -lc "export CYGWIN=winsymlinks:native; mount \"$APPVEYOR_BUILD_FOLDER\install\" /usr/local; cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; make install; umount /usr/local"'
61 # Disable tests for now
66 # Only build the master branch
73 # NOTE: Currently this is the Mono installation tree. In future we will create an installation package artifact.
74 # It has to be relative to the project path. Thus we have installed to within the build tree.