Skip to content

Commit 6439535

Browse files
committed
travis single conda recipe
1 parent 9f687ba commit 6439535

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

.travis.yml

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
- TEST_PKG="conda" BLA_VENDOR="OpenBLAS"
1414
- TEST_PKG="conda" BLA_VENDOR="Intel10_64lp" # MKL
1515
- 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
1717

1818
jobs:
1919
# additional single Linux and OSX jobs
@@ -33,9 +33,6 @@ jobs:
3333
os: osx
3434
language: shell
3535
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"
3936

4037
before_install:
4138
- |
@@ -90,34 +87,31 @@ install:
9087
source "$HOME/miniconda/etc/profile.d/conda.sh"
9188
hash -r
9289
conda config --set always_yes yes --set changeps1 no
93-
conda update -q --all
9490
conda install conda-build
9591
conda install conda-verify
96-
conda config --append channels conda-forge;
92+
conda config --add channels conda-forge;
93+
conda update -q --all
9794
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
11195
conda create -q -n test-environment \
11296
python="$SLYCOT_PYTHON_VERSION" \
11397
pip coverage pytest-cov \
114-
numpy scipy matplotlib \
115-
$conda_blas
98+
numpy scipy matplotlib
11699
conda activate test-environment
117100
export LIBRARY_PATH="$HOME/miniconda/envs/test-environment/lib"
118101
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
120103
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+
121115
elif [[ $TEST_PKG == dist ]]; then
122116
pip install scikit-build pytest-cov matplotlib scipy;
123117
CMAKE_GENERATOR="Unix Makefiles" python setup.py install;

0 commit comments

Comments
 (0)