Commit ba2a50db authored by Andreas Mueller's avatar Andreas Mueller
Browse files

Merge pull request #75 from amueller/travis_script_update

[MRG] don't use sudo in travis, don't --use-mirror in pip
parents 570717fe 76688441
language: python
sudo: false
addons:
apt:
packages:
# Only used by the DISTRIB="ubuntu" setting
- python-numpy
virtualenv:
system_site_packages: true
env:
......
......@@ -13,9 +13,6 @@ set -e
export CC=gcc
export CXX=g++
sudo apt-get update -qq
sudo apt-get install fonts-droid
if [[ "$DISTRIB" == "conda" ]]; then
# Deactivate the travis-provided virtual environment and setup a
# conda-based environment instead
......@@ -31,14 +28,16 @@ if [[ "$DISTRIB" == "conda" ]]; then
# Configure the conda environment and put it in the path using the
# provided versions
conda create -n testenv --yes python=$PYTHON_VERSION pip nose cython \
conda create -n testenv --yes python=$PYTHON_VERSION pip nose \
numpy=$NUMPY_VERSION
source activate testenv
elif [[ "$DISTRIB" == "ubuntu" ]]; then
# Use standard ubuntu packages in their default version
sudo apt-get install -qq python-numpy cython
virtualenv --system-site-packages testvenv
source testvenv/bin/activate
pip install nose
fi
pip install -r requirements.txt
......@@ -46,5 +45,3 @@ pip install -r requirements.txt
python --version
python -c "import numpy; print('numpy %s' % numpy.__version__)"
python setup.py build_ext --inplace
ls /usr/share/fonts/truetype/
ls /usr/share/fonts/truetype/droid
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment