GPy/.travis.yml

74 lines
1.6 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:
- $HOME/miniconda/
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
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 19:33:37 +01:00
- if [ ! -d $HOME/miniconda/bin ]; then
2015-09-13 19:20:08 +01:00
export CONDA_CACHED=0;
2015-09-13 19:03:05 +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;
2015-09-13 19:06:38 +01:00
fi;
2015-09-13 19:03:05 +01:00
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;
2015-09-13 19:06:38 +01:00
fi;
2015-09-13 19:03:05 +01:00
wget http://repo.continuum.io/miniconda/$MINICONDA-latest-$OS-x86_64.sh -O miniconda.sh;
chmod +x miniconda.sh;
2015-09-13 19:35:20 +01:00
rm -r $HOME/miniconda;
2015-09-13 19:03:05 +01:00
./miniconda.sh -b -p $HOME/miniconda;
2015-09-13 19:13:37 +01:00
fi;
2015-09-13 19:28:04 +01:00
- echo $PATH
- ls $HOME/miniconda/bin
2015-09-13 19:38:55 +01:00
- export PATH="$HOME/miniconda/bin:$PATH"
2015-09-13 19:21:51 +01:00
# - conda update --yes conda
2015-09-13 19:45:44 +01:00
# else
# conda update python=$PYTHON_VERSION numpy=1.9 scipy=0.16 nose pip six;
2015-09-13 19:21:51 +01:00
install:
2015-09-13 19:38:39 +01:00
- echo $PATH
2015-09-13 19:24:53 +01:00
- if [[ $CONDA_CACHED == 0 ]]; then
2015-09-13 19:03:05 +01:00
conda install --yes python=$PYTHON_VERSION numpy=1.9 scipy=0.16 nose pip six;
2015-09-13 19:07:23 +01:00
fi;
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