Skip to content

Commit

Permalink
wip-appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
drdanz committed Nov 3, 2015
1 parent 9b082bd commit a074e3d
Showing 1 changed file with 32 additions and 16 deletions.
48 changes: 32 additions & 16 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
version: 1.0.{build}
version: appveyor.{build}

init:
- cmd: git config --global core.autocrlf true
- cmd: dir C:\projects
- cmd: cmake --version
- cmd: msbuild /version

clone_folder: c:\projects\yarp

platform:
- Win32
- x64

configuration:
- Release
- Debug

branches:
except:
- travis

install:
- ps: $dwntool=New-Object System.Net.WebClient
- cmd: cinst 7zip.commandline -x86
Expand All @@ -10,23 +28,21 @@ install:
#- cmd: 7z x c:\ace.zip -oc:\ -y > nul
- ps: $dwntool.DownloadFile('http://www.icub.org/download/packages/windows/msvc11/ACE_6.1.0-bin-msvc11.zip','c:\ace.zip')
- cmd: 7z x c:\ace.zip -oc:\ -y > nul
- set ACE_ROOT=c:\ACE_wrappers

before_build:
- cmd: md C:\projects\yarp\build
- cmd: cd C:\projects\yarp\build
- cmd: if "%platform%"=="Win32" cmake -G"Visual Studio 11" -DCMAKE_INSTALL_PREFIX:PATH=C:\projects\yarp\install -DYARP_COMPILE_TESTS:BOOL=ON ..
- cmd: if "%platform%"=="x64" cmake -G"Visual Studio 11 Win64" -DCMAKE_INSTALL_PREFIX:PATH=C:\projects\yarp\install -DYARP_COMPILE_TESTS:BOOL=ON ..

build:
- project: C:\projects\yarp\build\yarp.sln

build_script:
- set ACE_ROOT=c:\ACE_wrappers
#- cd c:\ACE_wrappers\ace
#- copy config-win32.h config.h
#- msbuild /m /p:Configuration=Release /p:Platform="Win32" ace_vc10.sln
- cd c:\projects\yarp
- md build
- cd build
- cmake -G"Visual Studio 11" .. -DYARP_COMPILE_TESTS:BOOL=ON
- msbuild /m /p:Configuration=Release /p:Platform="Win32" yarp.sln
after_build:
- cmd: cmake --build C:\projects\yarp\build --target INSTALL --config %CONFIGURATION%

test_script:
# - cmd: ctest -VV -C %CONFIGURATION%
- set PATH=%PATH%;c:\ACE_wrappers\bin;c:\projects\yarp\build\bin\Release;c:\projects\yarp\build\lib\Release
- dir c:\ACE_wrappers\bin
- dir c:\projects\yarp\build\bin
- dir c:\projects\yarp\build\lib
- dir c:\projects\yarp\build\bin\Release
- dir c:\projects\yarp\build\lib\Release
- cmake --build . --target RUN_TESTS --config Release

0 comments on commit a074e3d

Please sign in to comment.