|
13 | 13 | - TEST_PKG="conda" BLA_VENDOR="OpenBLAS" |
14 | 14 | - TEST_PKG="conda" BLA_VENDOR="Intel10_64lp" # MKL |
15 | 15 | - TEST_PKG="dist" BLA_VENDOR="OpenBLAS" |
16 | | - - TEST_PKG="dist" BLA_VENDOR="Generic" # reference BLAS/LAPACK |
| 16 | + - TEST_PKG="dist" BLA_VENDOR="Generic" # force reference BLAS/LAPACK |
17 | 17 |
|
18 | 18 | jobs: |
19 | 19 | # additional single Linux and OSX jobs |
|
33 | 33 | os: osx |
34 | 34 | language: shell |
35 | 35 | env: TEST_PKG="dist" BLA_VENDOR="Apple" SLYCOT_PYTHON_VERSION=3.8.0 |
36 | | - allow_failures: |
37 | | - - python: "3.9" |
38 | | - env: TEST_PKG="conda" BLA_VENDOR="Intel10_64lp" |
39 | 36 |
|
40 | 37 | before_install: |
41 | 38 | - | |
@@ -90,34 +87,31 @@ install: |
90 | 87 | source "$HOME/miniconda/etc/profile.d/conda.sh" |
91 | 88 | hash -r |
92 | 89 | conda config --set always_yes yes --set changeps1 no |
93 | | - conda update -q --all |
94 | 90 | conda install conda-build |
95 | 91 | conda install conda-verify |
96 | | - conda config --append channels conda-forge; |
| 92 | + conda config --add channels conda-forge; |
| 93 | + conda update -q --all |
97 | 94 | conda info -a; |
98 | | - if [[ $BLA_VENDOR == "OpenBLAS" ]]; then |
99 | | - conda_blas=openblas |
100 | | - conda_recipe=conda-recipe-openblas |
101 | | - elif [[ $BLA_VENDOR == "Intel10_64lp" ]]; then |
102 | | - conda_blas=mkl |
103 | | - conda_recipe=conda-recipe-mkl |
104 | | - elif [[ $BLA_VENDOR == "Apple" ]]; then |
105 | | - conda_blas= |
106 | | - conda_recipe=conda-recipe-apple |
107 | | - else |
108 | | - echo "Unsupported BLA_VENDOR for conda builds: $BLA_VENDOR" |
109 | | - exit 3 |
110 | | - fi |
111 | 95 | conda create -q -n test-environment \ |
112 | 96 | python="$SLYCOT_PYTHON_VERSION" \ |
113 | 97 | pip coverage pytest-cov \ |
114 | | - numpy scipy matplotlib \ |
115 | | - $conda_blas |
| 98 | + numpy scipy matplotlib |
116 | 99 | conda activate test-environment |
117 | 100 | export LIBRARY_PATH="$HOME/miniconda/envs/test-environment/lib" |
118 | 101 | numpyversion=$(python -c 'import numpy; print(numpy.version.version)') |
119 | | - conda build --python "$SLYCOT_PYTHON_VERSION" --numpy $numpyversion $conda_recipe |
| 102 | + conda build --python "$SLYCOT_PYTHON_VERSION" --numpy $numpyversion conda-recipe |
120 | 103 | conda install local::slycot |
| 104 | + if [[ $BLA_VENDOR == "OpenBLAS" ]]; then |
| 105 | + conda install 'libblas=*=*openblas' |
| 106 | + elif [[ $BLA_VENDOR == "Intel10_64lp" ]]; then |
| 107 | + conda install 'libblas=*=*mkl' |
| 108 | + elif [[ $BLA_VENDOR == "Apple" ]]; then |
| 109 | + export LD_LIBRARY_PATH="/opt/MacOSX10.9.sdk/usr/lib" |
| 110 | + else |
| 111 | + echo "Unsupported BLA_VENDOR for conda builds: $BLA_VENDOR" |
| 112 | + exit 3 |
| 113 | + fi |
| 114 | +
|
121 | 115 | elif [[ $TEST_PKG == dist ]]; then |
122 | 116 | pip install scikit-build pytest-cov matplotlib scipy; |
123 | 117 | CMAKE_GENERATOR="Unix Makefiles" python setup.py install; |
|
0 commit comments