GPy/.travis.yml

71 lines
1.7 KiB
YAML
Raw Normal View History

sudo: false
2015-09-12 13:08:57 +01:00
os:
2015-09-12 17:15:02 +01:00
- osx
2015-09-12 17:57:12 +01:00
- linux
2015-09-12 13:55:10 +01:00
2015-09-12 17:15:02 +01:00
#language: python
2015-09-12 13:59:56 +01:00
#addons:
# apt:
# packages:
# - gfortran
# - libatlas-dev
# - libatlas-base-dev
# - liblapack-dev
2015-09-13 19:03:05 +01:00
cache:
directories:
2015-09-13 19:48:00 +01:00
- $HOME/download/
2015-09-13 19:52:00 +01:00
- $HOME/install/
2015-09-12 19:01:40 +01:00
2015-09-12 17:25:39 +01:00
env:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.3
- PYTHON_VERSION=3.4
2015-09-13 20:01:13 +01:00
- PYTHON_VERSION=3.5
2013-09-09 13:29:53 +01:00
2013-09-09 13:33:54 +01:00
before_install:
2015-09-13 19:24:53 +01:00
- export CONDA_CACHED=1
2015-09-13 20:01:13 +01:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export OS=Linux;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export OS=MacOSX;
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;
2015-09-13 21:22:02 +01:00
- if [! -d $HOME/download/]; then mkdir $HOME/download/; fi;
- if [! -d $HOME/install/]; then mkdir $HOME/install/; fi;
2015-09-13 20:08:14 +01:00
- export MINICONDA_FILE=$MINICONDA-latest-$OS-x86_64-$PYTHON_VERSION.sh
- export MINCONDA_CACHE_FILE=$HOME/download/$MINICONDA_FILE
- export MINICONDA_INSTALL=$HOME/install/$MINICONDA_FILE
2015-09-13 20:23:48 +01:00
- if [ ! -f $MINCONDA_CACHE_FILE ]; then
2015-09-13 19:20:08 +01:00
export CONDA_CACHED=0;
2015-09-13 20:15:33 +01:00
wget -v http://repo.continuum.io/miniconda/$MINICONDA-latest-$OS-x86_64.sh -O $MINCONDA_CACHE_FILE;
2015-09-13 20:08:14 +01:00
chmod +x $MINCONDA_CACHE_FILE;
2015-09-13 20:16:42 +01:00
bash $MINCONDA_CACHE_FILE -b -p $MINICONDA_INSTALL;
2015-09-13 19:13:37 +01:00
fi;
2015-09-13 20:08:14 +01:00
- export PATH="$MINICONDA_INSTALL/bin:$PATH"
2015-09-13 19:21:51 +01:00
install:
2015-09-13 19:48:00 +01:00
- conda install --yes python=$PYTHON_VERSION numpy=1.9 scipy=0.16 nose pip six;
2015-09-13 19:44:54 +01:00
- python -V
2015-09-13 19:03:05 +01:00
- pip install --upgrade .
2015-09-12 17:15:02 +01:00
before_script:
- cd $HOME
- mkdir empty
- cd empty
2015-09-12 17:15:02 +01:00
script:
2015-09-12 14:26:42 +01:00
- nosetests GPy.testing