Skip to content

Commit 5475a26

Browse files
Attempting to simplify travis config
1 parent 8576941 commit 5475a26

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.travis.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11
language: python
22
sudo: false
3+
cache: pip
34
python:
45
- "2.7"
56
- "3.4"
6-
install:
7-
- if [[ "$TRAVIS_PYTHON_VERSION" == 2.* ]]; then
8-
wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-Linux-x86_64.sh -O miniconda.sh;
9-
else
10-
wget http://repo.continuum.io/miniconda/Miniconda3-3.4.2-Linux-x86_64.sh -O miniconda.sh;
11-
fi
12-
- bash miniconda.sh -b -p $HOME/miniconda
13-
- export PATH="$HOME/miniconda/bin:$PATH"
14-
- hash -r
15-
- conda config --set always_yes yes --set changeps1 no
16-
- conda update -q conda
17-
# Useful for debugging any issues with conda
18-
- conda info -a
19-
20-
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION scikit-learn
21-
- source activate test-environment
22-
- python setup.py install
7+
before_install:
8+
- pip install --upgrade pip
9+
- pip install wheel
10+
- pip install numpy scipy scikit-learn
2311
script: python setup.py test

0 commit comments

Comments
 (0)