Mac build fix
This commit is contained in:
@@ -5,15 +5,3 @@ if [ ${TRAVIS_OS_NAME} != "osx" ]; then
|
||||
fi
|
||||
|
||||
brew update
|
||||
|
||||
if [ ${TASK} == "python-package" ]; then
|
||||
brew install python git graphviz
|
||||
easy_install pip
|
||||
pip install numpy scipy matplotlib nose
|
||||
fi
|
||||
|
||||
if [ ${TASK} == "python-package3" ]; then
|
||||
brew install python3 git graphviz
|
||||
sudo pip3 install --upgrade setuptools
|
||||
pip3 install numpy scipy matplotlib nose graphviz
|
||||
fi
|
||||
|
||||
@@ -33,30 +33,44 @@ if [ ${TASK} == "R-package" ]; then
|
||||
scripts/travis_R_script.sh || exit -1
|
||||
fi
|
||||
|
||||
if [ ${TASK} == "python-package" ]; then
|
||||
sudo apt-get install graphviz
|
||||
sudo apt-get install python-numpy python-scipy python-matplotlib python-nose
|
||||
sudo python -m pip install graphviz
|
||||
make all CXX=${CXX} || exit -1
|
||||
nosetests tests/python || exit -1
|
||||
fi
|
||||
if [ ${TASK} == "python-package" -o ${TASK} == "python-package3" ]; then
|
||||
|
||||
if [ ${TASK} == "python-package3" ]; then
|
||||
sudo apt-get install graphviz
|
||||
# python3-matplotlib is unavailale on Ubuntu 12.04
|
||||
sudo apt-get install python3-dev
|
||||
sudo apt-get install python3-numpy python3-scipy python3-nose python3-setuptools
|
||||
|
||||
make all CXX=${CXX} || exit -1
|
||||
|
||||
if [ ${TRAVIS_OS_NAME} != "osx" ]; then
|
||||
sudo easy_install3 pip
|
||||
sudo easy_install3 -U distribute
|
||||
sudo pip install graphviz matplotlib
|
||||
nosetests3 tests/python || exit -1
|
||||
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
|
||||
brew install graphviz
|
||||
if [ ${TASK} == "python-package3" ]; then
|
||||
wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
|
||||
else
|
||||
wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh
|
||||
fi
|
||||
else
|
||||
nosetests tests/python || exit -1
|
||||
sudo apt-get install graphviz
|
||||
if [ ${TASK} == "python-package3" ]; then
|
||||
wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
|
||||
else
|
||||
wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
|
||||
fi
|
||||
fi
|
||||
bash conda.sh -b -p $HOME/miniconda
|
||||
export PATH="$HOME/miniconda/bin:$PATH"
|
||||
hash -r
|
||||
conda config --set always_yes yes --set changeps1 no
|
||||
conda update -q conda
|
||||
# Useful for debugging any issues with conda
|
||||
conda info -a
|
||||
|
||||
if [ ${TASK} == "python-package3" ]; then
|
||||
conda create -n myenv python=3.4
|
||||
else
|
||||
conda create -n myenv python=2.7
|
||||
fi
|
||||
source activate myenv
|
||||
conda install numpy scipy matplotlib nose
|
||||
python -m pip install graphviz
|
||||
|
||||
make all CXX=${CXX} || exit -1
|
||||
|
||||
python -m nose tests/python || exit -1
|
||||
python --version
|
||||
fi
|
||||
|
||||
# only test java under linux for now
|
||||
|
||||
Reference in New Issue
Block a user