Skip to content

Commit

Permalink
Merge pull request #20 from GiulioRomualdi/ci/appveyor
Browse files Browse the repository at this point in the history
Add Windows CI system
  • Loading branch information
GiulioRomualdi authored Feb 8, 2019
2 parents 54594fb + 45e4e55 commit a74f46f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# osqp-eigen
Simple C++ wrapper for [osqp](http://osqp.readthedocs.io/en/latest/index.html) library.

| System | Status |
| ------------- |:-------------:|
|Linux / OSX | [![Build Status](https://travis-ci.org/robotology/osqp-eigen.svg?branch=master)](https://travis-ci.org/robotology/osqp-eigen) |
| System | Status |
| ------------- | :-------------: |
| Linux / OSX | [![Build Status](https://travis-ci.org/robotology/osqp-eigen.svg?branch=master)](https://travis-ci.org/robotology/osqp-eigen) |
| Windows | [![Build status](https://ci.appveyor.com/api/projects/status/1uecfmyvxb2dujt9/branch/master?svg=true)](https://ci.appveyor.com/project/robotology/osqp-eigen/branch/master) |


## Dependeces
Expand Down
43 changes: 43 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
version: 1.0.{build}

clone_folder: c:\projects\osqp-eigen

environment:
Eigen3_DIR: C:/Program Files (x86)/Eigen/lib/cmake/eigen3/

os:
- Visual Studio 2015
- Visual Studio 2017

install:
# Check env variables
- cmd: echo CMAKE_PREFIX_PATH %CMAKE_PREFIX_PATH%
- cmd: echo PATH %PATH%
build:

build_script:
# download and build osqp
- cd c:\projects
- git clone --recursive --depth 1 https://github.com/oxfordcontrol/osqp.git
- cd osqp
- md build
- cd build
- cmake ..
- cmake --build . --config Release
- cmake --build . --config Release --target INSTALL
# download and install eigen3
- cd c:\projects
- hg clone https://bitbucket.org/eigen/eigen
- cd eigen
- hg checkout 3.3-beta2
- md build
- cd build
- cmake ..
- cmake --build . --config Release --target INSTALL
# compile osqp-eigen
- cd c:\projects\osqp-eigen
- md build
- cd build
- cmake .. -DEIGEN3_INCLUDE_DIR="C:/Program Files (x86)/Eigen/include/eigen3"
- cmake --build . --config Release
- cmake --build . --config Release --target INSTALL

0 comments on commit a74f46f

Please sign in to comment.