Skip to content

Commit 2311bab

Browse files
committed
Merge pull request scikit-learn#6315 from ogrisel/ci-0.17.X
[MRG] backport CI fixes to 0.17.X branch
2 parents 96d8e3c + cb0f216 commit 2311bab

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ addons:
99
- libatlas-dev
1010
- python-scipy
1111
env:
12+
global:
13+
- OMP_NUM_THREADS=4
14+
- OPENBLAS_NUM_THREADS=4
1215
matrix:
1316
# This environment tests that scikit-learn can be built against
1417
# versions of numpy, scipy with ATLAS that comes with Ubuntu Precise 12.04
@@ -18,7 +21,7 @@ env:
1821
NUMPY_VERSION="1.6.2" SCIPY_VERSION="0.11.0"
1922
# This environment tests the newest supported anaconda env
2023
- DISTRIB="conda" PYTHON_VERSION="3.5" INSTALL_MKL="true"
21-
NUMPY_VERSION="1.10.1" SCIPY_VERSION="0.16.0"
24+
NUMPY_VERSION="1.10.2" SCIPY_VERSION="0.16.1"
2225
install: source continuous_integration/install.sh
2326
script: bash continuous_integration/test_script.sh
2427
after_success:

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ install:
4848
# not already installed.
4949
- "powershell ./continuous_integration/appveyor/install.ps1"
5050
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
51+
- "python -m pip install -U pip"
5152

5253
# Check that we have the expected version and architecture for Python
5354
- "python --version"
5455
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
56+
- "pip --version"
5557

5658
# Install the build and runtime dependencies of the project.
5759
- "%CMD_IN_ENV% pip install --timeout=60 --trusted-host 28daf2247a33ed269873-7b1aad3fab3cc330e1fd9d109892382a.r6.cf2.rackcdn.com -r continuous_integration/appveyor/requirements.txt"

continuous_integration/install.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,16 @@ if [[ "$DISTRIB" == "conda" ]]; then
2929

3030
# Configure the conda environment and put it in the path using the
3131
# provided versions
32-
conda create -n testenv --yes python=$PYTHON_VERSION pip nose \
33-
numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION
34-
source activate testenv
35-
3632
if [[ "$INSTALL_MKL" == "true" ]]; then
37-
# Make sure that MKL is used
38-
conda install --yes mkl
33+
conda create -n testenv --yes python=$PYTHON_VERSION pip nose \
34+
numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION numpy scipy \
35+
libgfortran mkl
3936
else
40-
# Make sure that MKL is not used
41-
conda remove --yes --features mkl || echo "MKL not installed"
37+
conda create -n testenv --yes python=$PYTHON_VERSION pip nose \
38+
numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION libgfortran
4239
fi
40+
source activate testenv
41+
4342

4443
elif [[ "$DISTRIB" == "ubuntu" ]]; then
4544
# At the time of writing numpy 1.9.1 is included in the travis

0 commit comments

Comments
 (0)