Skip to content

Commit

Permalink
[ci] Add AppVeyor support
Browse files Browse the repository at this point in the history
  • Loading branch information
gergondet committed Oct 26, 2016
1 parent 8ef5e52 commit a8faff2
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ RBDyn
=====

[![Build Status](https://travis-ci.org/jorisv/RBDyn.svg?branch=master)](https://travis-ci.org/jorisv/RBDyn)
[![AppVeyor status](https://ci.appveyor.com/api/projects/status/t0x6t0l8qfvih0qa/branch/topic/Win32?svg=true)](https://ci.appveyor.com/project/gergondet/rbdyn/branch/topic/Win32)

RBDyn provide a set of class and function to model the dynamics of rigid body systems.

Expand Down
87 changes: 87 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
version: 1.0.{build}
os: Visual Studio 2015
clone_folder: C:/devel-src/RBDyn
init:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
environment:
CMAKE_INSTALL_PREFIX: C:/devel
PROJECT_SOURCE_DIR: C:/devel-src/RBDyn
PATH: C:/devel/bin;C:\Libraries\boost_1_59_0\lib64-msvc-14.0;%PATH%
PKG_CONFIG_PATH: C:/devel/lib/pkgconfig
BOOST_ROOT: C:\Libraries\boost_1_59_0
BOOST_LIBRARYDIR: C:\Libraries\boost_1_59_0\lib64-msvc-14.0
SANE_CMAKE_INSTALL_PREFIX: C:\devel
SANE_PKG_CONFIG_PATH: C:\devel\lib\pkgconfig
before_build:
- cmd: >-
md C:\devel
if not exist C:\devel-src (md C:\devel-src)
cd C:\devel-src
choco install doxygen.portable
appveyor DownloadFile http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/glib_2.28.8-1_win32.zip
appveyor DownloadFile http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.26-1_win32.zip
appveyor DownloadFile http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime_0.18.1.1-2_win32.zip
7z x glib_2.28.8-1_win32.zip -oC:\devel -r
7z x pkg-config_0.26-1_win32.zip -oC:\devel -r
7z x gettext-runtime_0.18.1.1-2_win32.zip -oC:\devel -r
appveyor DownloadFile https://bitbucket.org/eigen/eigen/get/3.2.7.zip
7z x 3.2.7.zip -oC:\devel-src\eigen -r
cd C:\devel-src\eigen\eigen-eigen-b30b87236a1b
md build
cd build
cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% ../
msbuild INSTALL.vcxproj
if not exist %SANE_PKG_CONFIG_PATH%\ ( md %SANE_PKG_CONFIG_PATH% )
set EIGEN3_PC_FILE=%SANE_PKG_CONFIG_PATH%\eigen3.pc
echo Name: Eigen3 > %EIGEN3_PC_FILE%
echo Description: A C++ template library for linear algebra: vectors, matrices, and related algorithms >> %EIGEN3_PC_FILE%
echo Requires: >> %EIGEN3_PC_FILE%
echo Version: 3.2.7 >> %EIGEN3_PC_FILE%
echo Libs: >> %EIGEN3_PC_FILE%
echo Cflags: -I%CMAKE_INSTALL_PREFIX%/include/eigen3 >> %EIGEN3_PC_FILE%
cd C:/devel-src
git clone -b topic/Win32 https://github.com/gergondet/SpaceVecAlg
cd SpaceVecAlg
cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% -DPYTHON_BINDING=OFF
msbuild INSTALL.vcxproj
cd %PROJECT_SOURCE_DIR%
cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% -DPYTHON_BINDING=OFF
build:
project: INSTALL.vcxproj
verbosity: minimal
test_script:
- cmd: >-
cd %PROJECT_SOURCE_DIR%
ctest

0 comments on commit a8faff2

Please sign in to comment.