From 2bf2b222e0d560330bb007c58f1a3ab793e20596 Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Sun, 17 May 2015 17:35:45 -0700 Subject: [PATCH] Add appveyor.yml. --- cmake/appveyor.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 cmake/appveyor.yml diff --git a/cmake/appveyor.yml b/cmake/appveyor.yml new file mode 100644 index 0000000..6b66ca1 --- /dev/null +++ b/cmake/appveyor.yml @@ -0,0 +1,42 @@ +version: 1.0.{build} +configuration: +- debug +- release +platform: +- Win32 +- x64 +clone_depth: 1 +install: +- git clone https://github.com/mfontanini/winpcap-installer.git +- cd winpcap-installer +- winpcap-boundary-meter-4.1.3.exe /S +- cd .. +- appveyor DownloadFile http://www.winpcap.org/install/bin/WpdPack_4_1_2.zip +- 7z x .\WpdPack_4_1_2.zip -oc:\ +- git submodule init +- git submodule update +before_build: +- mkdir build +- cd build +- if "%platform%"=="x64" ( set GENERATOR="Visual Studio 12 Win64" ) else ( set GENERATOR="Visual Studio 12" ) +- cmake .. -G %GENERATOR% -DPCAP_ROOT_DIR=c:\WpdPack -DLIBTINS_BUILD_SHARED=0 -DLIBTINS_ENABLE_WPA2=0 -DLIBTINS_ENABLE_CXX11=1 +build: + project: C:/projects/libtins/build/libtins.sln + verbosity: minimal +after_build: +- mkdir install\libtins\include +- mkdir install\libtins\lib +- cd install\libtins +- copy C:\projects\libtins\build\lib\%Configuration%\tins.lib lib +- xcopy C:\projects\libtins\include include /s /e +- del include\CMakeLists.txt +- del include\tins\CMakeLists.txt +- del include\tins\config.h.in +- del include\tins\dot11\CMakeLists.txt +- cd ..\ +- 7z a libtins-%platform%-%Configuration%.zip libtins +test_script: +- cd c:\projects\libtins\build +- ctest -C %Configuration% +deploy_script: +- ps: Push-AppveyorArtifact "install\libtins-$env:Platform-$env:Configuration.zip" \ No newline at end of file