-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix, added tests, Windows compatibility update (Python 3.5+)
- Fixed issue with undefined 'status' when using MOSEK - Use MS implementation of complex numbers when compiling with MSVC (see https://docs.microsoft.com/en-us/cpp/c-runtime-library/complex-math-support); resolves #94 - Fixed typo in floorplan example - Added tests and updated copyright - Updated CI configurations - Fixed issue with Homebrew gcc installation failure (see travis-ci/travis-ci#8826) - Exclude DSDP extension on macOS (dsdp no longer available via homebrew) - Use miniconda on macOS - AppVeyor: compile with MSVC for Python 3.5+
- Loading branch information
1 parent
33bf4ab
commit 3168b88
Showing
34 changed files
with
1,182 additions
and
355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,77 @@ | ||
notifications: | ||
email: false | ||
|
||
git: | ||
depth: 2 | ||
|
||
env: | ||
global: | ||
- SUITESPARSE_VERSION=5.2.0 | ||
- SUITESPARSE_SHA256=3c46c035ea8217649958a0f73360e825b0c9dcca4e32a9349d2c7678c0d48813 | ||
- CVXOPT_BUILD_GSL=1 | ||
- CVXOPT_BUILD_FFTW=1 | ||
- CVXOPT_BUILD_GLPK=1 | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
language: python | ||
python: '2.7' | ||
env: CVXOPT_BUILD_GSL=1 CVXOPT_BUILD_DSDP=1 CVXOPT_BUILD_FFTW=1 CVXOPT_BUILD_GLPK=1 | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
language: python | ||
python: '2.7' | ||
env: CVXOPT_BUILD_GSL=1 CVXOPT_BUILD_DSDP=1 CVXOPT_BUILD_FFTW=1 CVXOPT_BUILD_GLPK=1 | ||
BUILD_SUITESPARSE=1 COVERALLS=1 | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
language: python | ||
python: '3.5' | ||
env: CVXOPT_BUILD_GSL=1 CVXOPT_BUILD_DSDP=1 CVXOPT_BUILD_FFTW=1 CVXOPT_BUILD_GLPK=1 | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
language: python | ||
python: '3.6' | ||
env: CVXOPT_BUILD_GSL=1 CVXOPT_BUILD_DSDP=1 CVXOPT_BUILD_FFTW=1 CVXOPT_BUILD_GLPK=1 | ||
- os: osx | ||
env: PYVERSION=2.7 CVXOPT_BUILD_GSL=1 CVXOPT_BUILD_DSDP=1 CVXOPT_BUILD_FFTW=1 | ||
CVXOPT_BUILD_GLPK=1 CVXOPT_BLAS_LIB_DIR=/usr/local/opt/openblas/lib CVXOPT_BLAS_LIB=openblas | ||
CVXOPT_LAPACK_LIB=openblas BUILD_SUITESPARSE=1 | ||
language: generic | ||
- os: osx | ||
env: PYVERSION=2.7 CVXOPT_BUILD_GSL=1 CVXOPT_BUILD_DSDP=1 CVXOPT_BUILD_FFTW=1 | ||
CVXOPT_BUILD_GLPK=1 CVXOPT_BLAS_LIB_DIR=/usr/local/opt/openblas/lib CVXOPT_BLAS_LIB=openblas | ||
CVXOPT_LAPACK_LIB=openblas | ||
language: generic | ||
- os: osx | ||
env: PYVERSION=3.6 CVXOPT_BUILD_GSL=1 CVXOPT_BUILD_DSDP=1 CVXOPT_BUILD_FFTW=1 | ||
CVXOPT_BUILD_GLPK=1 CVXOPT_BLAS_LIB_DIR=/usr/local/opt/openblas/lib CVXOPT_BLAS_LIB=openblas | ||
CVXOPT_LAPACK_LIB=openblas | ||
language: generic | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
language: python | ||
python: '2.7' | ||
env: CVXOPT_BUILD_DSDP=1 | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
language: python | ||
python: '2.7' | ||
env: CVXOPT_BUILD_DSDP=1 BUILD_SUITESPARSE=1 COVERALLS=1 | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
language: python | ||
python: '3.5' | ||
env: CVXOPT_BUILD_DSDP=1 | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
language: python | ||
python: '3.6' | ||
env: CVXOPT_BUILD_DSDP=1 | ||
- os: osx | ||
language: python | ||
env: PYVERSION=2.7 CVXOPT_BUILD_DSDP=0 BUILD_SUITESPARSE=1 | ||
CVXOPT_BLAS_LIB_DIR=/usr/local/opt/openblas/lib | ||
CVXOPT_BLAS_LIB=openblas CVXOPT_LAPACK_LIB=openblas | ||
language: generic | ||
- os: osx | ||
language: python | ||
env: PYVERSION=2.7 CVXOPT_BUILD_DSDP=0 | ||
CVXOPT_BLAS_LIB_DIR=/usr/local/opt/openblas/lib | ||
CVXOPT_BLAS_LIB=openblas CVXOPT_LAPACK_LIB=openblas | ||
language: generic | ||
- os: osx | ||
language: python | ||
env: PYVERSION=3.6 CVXOPT_BUILD_DSDP=0 | ||
CVXOPT_BLAS_LIB_DIR=/usr/local/opt/openblas/lib | ||
CVXOPT_BLAS_LIB=openblas CVXOPT_LAPACK_LIB=openblas | ||
language: generic | ||
before_install: | ||
- if [[ "$BUILD_SUITESPARSE" == "1" ]]; then wget http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-4.5.4.tar.gz; tar -xf SuiteSparse-4.5.4.tar.gz; export CVXOPT_SUITESPARSE_SRC_DIR=$(pwd)/SuiteSparse; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python-dev libopenblas-dev libfftw3-dev libglpk-dev libdsdp-dev libgsl0-dev; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" && -z "$BUILD_SUITESPARSE" ]]; then sudo add-apt-repository ppa:bzindovic/suitesparse-bugfix-1319687 -y; sudo apt-get update; sudo apt-get install libsuitesparse-dev; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install homebrew/science/openblas homebrew/science/glpk dsdp gsl fftw; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" && -z "$BUILD_SUITESPARSE" ]]; then brew install homebrew/science/suite-sparse; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$PYVERSION" == "2.7" ]]; then virtualenv venv -p python; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$PYVERSION" == "3.6" ]]; then brew install python3; virtualenv venv -p python3; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate; fi | ||
- if [[ "$BUILD_SUITESPARSE" == "1" ]]; then wget http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-${SUITESPARSE_VERSION}.tar.gz; echo "${SUITESPARSE_SHA256} SuiteSparse-${SUITESPARSE_VERSION}.tar.gz" > SuiteSparse.sha256; tar -xf SuiteSparse-${SUITESPARSE_VERSION}.tar.gz; export CVXOPT_SUITESPARSE_SRC_DIR=$(pwd)/SuiteSparse; fi | ||
- if [[ "$BUILD_SUITESPARSE" == "1" && "$TRAVIS_OS_NAME" == "linux" ]]; then sha256sum -c SuiteSparse.sha256; fi | ||
- if [[ "$BUILD_SUITESPARSE" == "1" && "$TRAVIS_OS_NAME" == "osx" ]]; then shasum -a 256 -c SuiteSparse.sha256; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python-dev libopenblas-dev libfftw3-dev libglpk-dev libdsdp-dev libgsl0-dev; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" && -z "$BUILD_SUITESPARSE" ]]; then sudo add-apt-repository ppa:bzindovic/suitesparse-bugfix-1319687 -y; sudo apt-get update; sudo apt-get install libsuitesparse-dev; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask uninstall oclint; brew install openblas glpk gsl fftw; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" && -z "$BUILD_SUITESPARSE" ]]; then brew install suite-sparse; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;bash miniconda.sh -b -p $HOME/miniconda; export PATH="$HOME/miniconda/bin:$PATH" ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then conda create -y -n myenv python=$PYVERSION && source $HOME/miniconda/bin/activate myenv; fi | ||
- pip install nose coveralls | ||
install: | ||
- pip install coveralls nose | ||
- python setup.py install | ||
- python setup.py install | ||
script: | ||
- python -c 'from cvxopt import blas,lapack,glpk,fftw,dsdp,gsl,cholmod,umfpack' | ||
- nosetests --with-coverage --cover-package=cvxopt | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python -c 'from cvxopt import blas,lapack,glpk,fftw,dsdp,gsl,cholmod,umfpack'; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python -c 'from cvxopt import blas,lapack,glpk,fftw,gsl,cholmod,umfpack'; fi | ||
- nosetests --with-coverage --cover-package=cvxopt | ||
after_success: | ||
- if [ $COVERALLS ]; then coveralls; fi | ||
- if [ $COVERALLS ]; then coveralls; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.