added appveyor ci for msvc

This commit is contained in:
Patrick von Reth 2015-07-17 16:03:29 +02:00
parent 4ea0d86f2a
commit 0e39862639
1 changed files with 21 additions and 0 deletions

21
appveyor.yml Normal file
View File

@ -0,0 +1,21 @@
version: 1.0.{build}
branches:
only:
- master
build_script:
- call C:\Qt\5.5\msvc2013_64\bin\qtenv2.bat
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
- set "MY_ROOT=%APPVEYOR_BUILD_FOLDER:\=/%"
- set MY_ROOT=%MY_ROOT%/work/install
- mkdir %APPVEYOR_BUILD_FOLDER%\work\install
- mkdir %APPVEYOR_BUILD_FOLDER%\work\build
- mkdir %APPVEYOR_BUILD_FOLDER%\work\build\extra-cmake-modules
- mkdir %APPVEYOR_BUILD_FOLDER%\work\build\snorenotify
- cd %APPVEYOR_BUILD_FOLDER%\work
- git clone git://anongit.kde.org/extra-cmake-modules.git
- cd %APPVEYOR_BUILD_FOLDER%\work\build\extra-cmake-modules
- cmake -G"NMake Makefiles" %APPVEYOR_BUILD_FOLDER%\work\extra-cmake-modules -DCMAKE_INSTALL_PREFIX="%MY_ROOT%"
- nmake install
- cd %APPVEYOR_BUILD_FOLDER%\work\build\snorenotify
- cmake -G"NMake Makefiles" %APPVEYOR_BUILD_FOLDER% -DWITH_SNORE_DAEMON=ON -DWITH_FRONTENDS=ON -DCMAKE_INSTALL_PREFIX="%MY_ROOT%"
- nmake