12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- version: '{build}'
- clone_folder: c:\projects\open62541
- clone_depth: 20
- environment:
- global:
- CYG_ARCH: x86
- CYG_ROOT: C:/cygwin
- CYG_SETUP_URL: http://cygwin.com/setup-x86.exe
- CYG_MIRROR: http://cygwin.mirror.constant.com
- CYG_CACHE: C:\cygwin\var\cache\setup
- CYG_BASH: C:/cygwin/bin/bash
- matrix:
- - CC_NAME: MinGW Makefiles
- CC_SHORTNAME: mingw
- MAKE: mingw32-make
- FORCE_CXX: OFF
- # - CC_NAME: Visual Studio 9 2008
- # CC_SHORTNAME: vs2008
- # MAKE: msbuild open62541.sln /m
- # FORCE_CXX: ON
- - CC_NAME: Visual Studio 12 2013
- CC_SHORTNAME: vs2013
- MAKE: msbuild open62541.sln /m
- FORCE_CXX: OFF
- - CC_NAME: Visual Studio 12 2013 Win64
- CC_SHORTNAME: vs2013-x64
- MAKE: msbuild open62541.sln /m
- FORCE_CXX: OFF
- cache:
- - '%CYG_CACHE%'
- init:
- - git config --global core.autocrlf input # Attempt to ensure we don't try to convert line endings to Win32 CRLF as this will cause build to fail
- # Install needed build dependencies
- install:
- - git submodule update --init --recursive
- - if not exist "%CYG_ROOT%" mkdir "%CYG_ROOT%"
- - ps: echo "Installing Cygwin from $env:CYG_SETUP_URL to $env:CYG_ROOT/setup-x86.exe"
- - appveyor DownloadFile %CYG_SETUP_URL% -FileName %CYG_ROOT%/setup-x86.exe
- - ps: echo "Downloaded. Now ready to install."
- - cmd: '"%CYG_ROOT%/setup-x86.exe" --quiet-mode --no-shortcuts --only-site -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" --packages cmake,python'
- - cmd: '%CYG_BASH% -lc "cygcheck -dc cygwin"'
- before_build:
- # use MinGW64
- - set PATH=C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;%PATH%
- # Workaround for CMake not wanting sh.exe on PATH for MinGW
- - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- build_script:
- - cd c:\projects\open62541
- - md build
- - cd build
- - echo "Testing %CC_NAME%"
- - cmake -DUA_BUILD_EXAMPLES:BOOL=ON -DUA_COMPILE_AS_CXX:BOOL=%FORCE_CXX% -G"%CC_NAME%" ..
- - '%MAKE%'
- - cd ..
- - rd /s /q build
- - md build
- - cd build
- - echo "Testing %CC_NAME% with amalgamation"
- - cmake -DUA_BUILD_EXAMPLES:BOOL=ON -DUA_ENABLE_AMALGAMATION:BOOL=ON -DUA_COMPILE_AS_CXX:BOOL=%FORCE_CXX% -G"%CC_NAME%" ..
- - '%MAKE%'
- - cd ..
- after_build:
- - 7z a open62541-%CC_SHORTNAME%.zip %APPVEYOR_BUILD_FOLDER%\build*
- - appveyor PushArtifact open62541-%CC_SHORTNAME%.zip
|