提交 63173fb8 authored 作者: notoraptor's avatar notoraptor

New test 3.

上级 15ad1255
...@@ -15,15 +15,7 @@ python: ...@@ -15,15 +15,7 @@ python:
- "3.3" - "3.3"
# command to install dependencies # command to install dependencies
before_install: before_install: ./.travis/travis_before_install.sh
# Install miniconda to avoid compiling scipy
- mkdir -p download
- cd download
- wget -c https://repo.continuum.io/miniconda/Miniconda2-4.1.11-Linux-x86_64.sh -O $HOME/download/miniconda.sh
- chmod +x $HOME/download/miniconda.sh
- $HOME/download/miniconda.sh -b
- cd ..
- export PATH=/home/travis/miniconda2/bin:$PATH
addons: addons:
apt_packages: apt_packages:
...@@ -32,17 +24,7 @@ addons: ...@@ -32,17 +24,7 @@ addons:
- texlive-fonts-recommended - texlive-fonts-recommended
- dvipng - dvipng
install: install: ./.travis/travis_install.sh
# In Python 3.3, we test the min version of NumPy and SciPy. In Python 2.7, we test more recent version.
# nose-exclude plugin should allow use to tell nosetests to exclude folder with --exclude-dir=path/to/directory.
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then conda create --yes -q -n pyenv mkl python=2.7 numpy=1.9.1 scipy=0.14.0 nose=1.3.0 pip flake8=2.3 six=1.9.0 pep8=1.6.2 pyflakes=0.8.1 sphinx mkl-service libgfortran=1; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then conda create --yes -q -n pyenv mkl python=3.3 numpy=1.9.1 scipy=0.14.0 nose=1.3.4 pip flake8=2.3 six=1.9.0 pep8=1.6.2 pyflakes=0.8.1 sphinx mkl-service; fi
- source activate pyenv
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install pydot; else pip install pydot-ng; fi
- pip install . --no-deps
- pip install flake8-future-import nose-parameterized==0.5.0 sphinx_rtd_theme
- pip install nose-exclude
- conda info --envs | grep "*" | cut -d"*" -f 2 | sed 's/^ *//g' | sed 's/ *$//g'
# command to run tests # command to run tests
env: env:
......
# Install miniconda to avoid compiling scipy
if ! test -e $HOME/miniconda2/bin ; then
wget -c https://repo.continuum.io/miniconda/Miniconda2-4.1.11-Linux-x86_64.sh -O $HOME/download/miniconda.sh
chmod +x $HOME/download/miniconda.sh
$HOME/download/miniconda.sh -b
export PATH=/home/travis/miniconda2/bin:$PATH
else
echo "miniconda already installed."
fi
\ No newline at end of file
# In Python 3.3, we test the min version of NumPy and SciPy. In Python 2.7, we test more recent version.
# nose-exclude plugin should allow use to tell nosetests to exclude folder with --exclude-dir=path/to/directory.
if ! test -e $HOME/miniconda2/envs/pyenv
then
if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then conda create --yes -q -n pyenv mkl python=2.7 numpy=1.9.1 scipy=0.14.0 nose=1.3.0 pip flake8=2.3 six=1.9.0 pep8=1.6.2 pyflakes=0.8.1 sphinx mkl-service libgfortran=1; fi
if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then conda create --yes -q -n pyenv mkl python=3.3 numpy=1.9.1 scipy=0.14.0 nose=1.3.4 pip flake8=2.3 six=1.9.0 pep8=1.6.2 pyflakes=0.8.1 sphinx mkl-service; fi
source activate pyenv
else
source activate pyenv
if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then conda install mkl python=2.7 numpy=1.9.1 scipy=0.14.0 nose=1.3.0 pip flake8=2.3 six=1.9.0 pep8=1.6.2 pyflakes=0.8.1 sphinx mkl-service libgfortran=1; fi
if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then conda install mkl python=3.3 numpy=1.9.1 scipy=0.14.0 nose=1.3.4 pip flake8=2.3 six=1.9.0 pep8=1.6.2 pyflakes=0.8.1 sphinx mkl-service; fi
fi
if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install pydot; else pip install pydot-ng; fi
pip install . --no-deps
pip install flake8-future-import nose-parameterized==0.5.0 sphinx_rtd_theme
pip install nose-exclude
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论