This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
83 lines (81 loc) · 3.76 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
notifications:
email: false
env:
global:
- SUITESPARSE_VERSION=5.3.0
- SUITESPARSE_SHA256=90e69713d8c454da5a95a839aea5d97d8d03d00cc1f667c4bdfca03f640f963d
- CVXOPT_BUILD_GSL=1
- CVXOPT_BUILD_FFTW=1
- CVXOPT_BUILD_GLPK=1
matrix:
include:
- os: linux
dist: xenial
sudo: required
language: python
python: '2.7'
env: CVXOPT_BUILD_DSDP=1
- os: linux
dist: xenial
sudo: required
language: python
python: '2.7'
env: CVXOPT_BUILD_DSDP=1 BUILD_SUITESPARSE=1
- os: linux
dist: xenial
sudo: required
language: python
python: '3.6'
env: CVXOPT_BUILD_DSDP=1
- os: linux
dist: xenial
sudo: required
language: python
python: '3.7'
env: CVXOPT_BUILD_DSDP=1
- os: osx
language: python
env: PYVERSION=2.7 CVXOPT_BUILD_DSDP=1 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=1
CVXOPT_BLAS_LIB_DIR=/usr/local/opt/openblas/lib
CVXOPT_BLAS_LIB=openblas CVXOPT_LAPACK_LIB=openblas
CVXOPT_DSDP_INC_DIR=$HOME/miniconda/envs/myenv/include CVXOPT_DSDP_LIB_DIR=$HOME/miniconda/envs/myenv/lib
language: generic
- os: osx
language: python
env: PYVERSION=3.6 CVXOPT_BUILD_DSDP=1
CVXOPT_BLAS_LIB_DIR=/usr/local/opt/openblas/lib
CVXOPT_BLAS_LIB=openblas CVXOPT_LAPACK_LIB=openblas
CVXOPT_DSDP_INC_DIR=$HOME/miniconda/envs/myenv/include CVXOPT_DSDP_LIB_DIR=$HOME/miniconda/envs/myenv/lib
language: generic
- os: osx
language: python
env: PYVERSION=3.7 CVXOPT_BUILD_DSDP=1
CVXOPT_BLAS_LIB_DIR=/usr/local/opt/openblas/lib
CVXOPT_BLAS_LIB=openblas CVXOPT_LAPACK_LIB=openblas
CVXOPT_DSDP_INC_DIR=$HOME/miniconda/envs/myenv/include CVXOPT_DSDP_LIB_DIR=$HOME/miniconda/envs/myenv/lib
language: generic
before_install:
- 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 install openblas glpk gsl fftw; brew info openblas; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && -z "$BUILD_SUITESPARSE" ]]; then brew install suite-sparse; brew info suitesparse; 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 dsdp && source $HOME/miniconda/bin/activate myenv; fi
- pip install pytest pytest-cov coveralls
install:
- python setup.py build
- pip install .
script:
- python -c 'from cvxopt import blas,lapack,glpk,fftw,dsdp,gsl,cholmod,umfpack'
- py.test --cov=cvxopt tests/
after_success:
- coveralls