|
| 1 | +# branches to build |
| 2 | +branches: |
| 3 | + # whitelist |
| 4 | + only: |
| 5 | + - master |
| 6 | + - appveyor_debug |
| 7 | + |
| 8 | +# Operating system (build VM template) |
| 9 | +os: Visual Studio 2015 |
| 10 | + |
| 11 | +# scripts that are called at very beginning, before repo cloning |
| 12 | +init: |
| 13 | + - git config --global core.autocrlf input |
| 14 | + |
| 15 | + |
| 16 | +# clone directory |
| 17 | +clone_folder: c:\projects\minisat |
| 18 | + |
| 19 | +platform: |
| 20 | + - x64 |
| 21 | +# - x86 |
| 22 | + |
| 23 | +environment: |
| 24 | + global: |
| 25 | + BOOST_ROOT: C:\projects\minisat\boost_1_59_0_install |
| 26 | + ZLIB_ROOT: C:\projects\minisat\zlib\myinstall |
| 27 | + BUILD_TYPE: Release |
| 28 | + MSBUILD_FLAGS: /maxcpucount /nologo |
| 29 | + |
| 30 | +configuration: |
| 31 | + - Release |
| 32 | + |
| 33 | +build_script: |
| 34 | + #- IF "%PLATFORM%" == "x86" ( SET BOOST_LIBRARYDIR=C:/Libraries/boost_1_59_0/lib32-msvc-14.0) |
| 35 | + - IF "%PLATFORM%" == "x86" ( SET CMAKE_GENERATOR="Visual Studio 14 2015") |
| 36 | + |
| 37 | + #- IF "%PLATFORM%" == "x64" ( SET BOOST_LIBRARYDIR=C:/Libraries/boost_1_59_0/lib64-msvc-14.0) |
| 38 | + - IF "%PLATFORM%" == "x64" ( SET CMAKE_GENERATOR="Visual Studio 14 2015 Win64") |
| 39 | + |
| 40 | + - echo %PLATFORM% |
| 41 | + - echo %BOOST_LIBRARYDIR% |
| 42 | + - echo %CMAKE_GENERATOR% |
| 43 | + - echo %configuration% |
| 44 | + - echo %APPVEYOR_BUILD_FOLDER% |
| 45 | + - echo %cd% |
| 46 | + |
| 47 | + # zlib |
| 48 | + # TODO check out http://stackoverflow.com/questions/10507893/libzip-with-visual-studio-2010 |
| 49 | + - cd C:\projects\minisat |
| 50 | + - git clone https://github.com/madler/zlib |
| 51 | + - cd zlib |
| 52 | + - git checkout v1.2.8 |
| 53 | + - echo %cd% |
| 54 | + - mkdir build |
| 55 | + - mkdir myinstall |
| 56 | + - cd build |
| 57 | + - cmake -G %CMAKE_GENERATOR% -DCMAKE_INSTALL_PREFIX=%ZLIB_ROOT% .. |
| 58 | + - if %PLATFORM%==x86 call msbuild %MSBUILD_FLAGS% /t:Build /p:Configuration=%CONFIGURATION% /p:Platform="x86" zlib.sln |
| 59 | + - if %PLATFORM%==x64 call msbuild %MSBUILD_FLAGS% /t:Build /p:Configuration=%CONFIGURATION% /p:Platform="x64" zlib.sln |
| 60 | + - msbuild %MSBUILD_FLAGS% INSTALL.vcxproj |
| 61 | + - dir ..\myinstall\ |
| 62 | + |
| 63 | + # minisat |
| 64 | + - cd C:\projects\minisat |
| 65 | + - mkdir build |
| 66 | + - mkdir myinstall |
| 67 | + - cd build |
| 68 | + - cmake -G %CMAKE_GENERATOR% -DCMAKE_INSTALL_PREFIX=%MINISAT_ROOT% -DZLIB_ROOT=%ZLIB_ROOT% .. |
| 69 | + - cmake --build . --config %CONFIGURATION% |
| 70 | + - dir ..\myinstall\ |
| 71 | + |
| 72 | + |
| 73 | +build: |
| 74 | + # project: INSTALL.vcxproj # path to Visual Studio solution or project |
| 75 | + parallel: true |
| 76 | + verbosity: minimal |
| 77 | + |
| 78 | + |
| 79 | +# scripts to run after build |
| 80 | +after_build: |
| 81 | + - 7z a c:\projects\minisat\minisat.zip %APPVEYOR_BUILD_FOLDER%\build -tzip |
| 82 | + - cd c:\projects\minisat |
| 83 | + |
| 84 | +artifacts: |
| 85 | + - path: minisat.zip |
| 86 | + name: minisat.zip |
| 87 | + |
| 88 | +deploy_script: |
| 89 | + #- cd c:\projects\minisat |
| 90 | + #- curl -T minisat.zip --user %ACCOUNT% https://someplace/ |
| 91 | + |
| 92 | +test: off |
0 commit comments