mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-05 14:55:15 +02:00
Merge pull request #309 from SheffieldML/travis_scripts
[travis_scripts] loading scripts from github repo
This commit is contained in:
commit
c4020cd2eb
1 changed files with 9 additions and 31 deletions
40
.travis.yml
40
.travis.yml
|
|
@ -20,39 +20,17 @@ env:
|
||||||
- PYTHON_VERSION=3.5
|
- PYTHON_VERSION=3.5
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- export CONDA_CACHED=1
|
- wget https://github.com/mzwiessele/travis_scripts/raw/master/download_miniconda.sh
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]];
|
- wget https://github.com/mzwiessele/travis_scripts/raw/master/install_retry.sh
|
||||||
then export OS=Linux;
|
- source download_miniconda.sh
|
||||||
elif [[ "$TRAVIS_OS_NAME" == "osx" ]];
|
- echo $PATH
|
||||||
then export OS=MacOSX;
|
|
||||||
brew install pandoc;
|
|
||||||
else
|
|
||||||
echo "OS not supported yet";
|
|
||||||
exit 1; fi;
|
|
||||||
- if [[ $PYTHON_VERSION == "2.7" ]];
|
|
||||||
then export MINICONDA=Miniconda;
|
|
||||||
elif [[ $PYTHON_VERSION == 3* ]];
|
|
||||||
then export MINICONDA=Miniconda3;
|
|
||||||
else echo "Could not find python version";exit 1; fi;
|
|
||||||
- if [ ! -d $HOME/download/ ]; then mkdir $HOME/download/; fi;
|
|
||||||
- if [ ! -d $HOME/install/ ]; then mkdir $HOME/install/; fi;
|
|
||||||
- export MINICONDA_FILE=$MINICONDA-latest-$OS-x86_64-$PYTHON_VERSION
|
|
||||||
- export MINCONDA_CACHE_FILE=$HOME/download/$MINICONDA_FILE.sh
|
|
||||||
- export MINICONDA_INSTALL=$HOME/install/$MINICONDA_FILE
|
|
||||||
- if [ ! -f $MINCONDA_CACHE_FILE ]; then export CONDA_CACHED=0; wget http://repo.continuum.io/miniconda/$MINICONDA-latest-$OS-x86_64.sh -O $MINCONDA_CACHE_FILE; bash $MINCONDA_CACHE_FILE -b -p $MINICONDA_INSTALL; fi;
|
|
||||||
- export PATH="$MINICONDA_INSTALL/bin:$PATH";
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- n=0
|
- echo $PATH
|
||||||
until [ $n -ge 5 ]
|
- source install_retry.sh
|
||||||
do # Retry 5 times, as weird 404 errors seem to popup...
|
- pip install codecov
|
||||||
conda install --yes python=$PYTHON_VERSION numpy=1.9 scipy=0.16 nose pip six matplotlib sphinx && break
|
- pip install pypandoc
|
||||||
n=$[$n+1]
|
- python setup.py develop
|
||||||
sleep 15
|
|
||||||
done
|
|
||||||
- pip install codecov
|
|
||||||
- pip install pypandoc
|
|
||||||
- python setup.py develop
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- coverage run travis_tests.py
|
- coverage run travis_tests.py
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue