提交 44c045c2 authored 作者: Frédéric Bastien's avatar Frédéric Bastien

Merge pull request #2431 from bartvm/travis_cache

Enable Travis container-based environment
# After changing this file, check it on: # After changing this file, check it on:
# http://lint.travis-ci.org/ # http://lint.travis-ci.org/
sudo: false
language: python language: python
python: python:
- "2.6" - "2.6"
# command to install dependencies # command to install dependencies
before_install: before_install:
- sudo apt-get install -q libatlas3gf-base libatlas-dev liblapack-dev gfortran
# Install miniconda to avoid compiling scipy # Install miniconda to avoid compiling scipy
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh - chmod +x miniconda.sh
...@@ -18,8 +17,8 @@ before_install: ...@@ -18,8 +17,8 @@ before_install:
install: install:
# We support scipy 0.7.2, but it is not available on conda. # We support scipy 0.7.2, but it is not available on conda.
# So we test with 0.11. Our internal buildbot have 0.7.2. # So we test with 0.11. Our internal buildbot have 0.7.2.
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then conda create --yes -q -n pyenv python=2.6 numpy=1.6 scipy=0.11 nose=1.1 pyparsing=1.5 pip; fi - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then conda create --yes -q -n pyenv mkl python=2.6 numpy=1.6 scipy=0.11 nose=1.1 pyparsing=1.5 pip; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then conda create --yes -q -n pyenv python=3.3 numpy=1.9.1 scipy=0.14.0 nose=1.3.4 pip; 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; fi
- source activate pyenv - source activate pyenv
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install pydot; fi - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install pydot; fi
- pip install . --no-deps --use-mirrors - pip install . --no-deps --use-mirrors
...@@ -40,7 +39,7 @@ matrix: ...@@ -40,7 +39,7 @@ matrix:
env: PART="." THEANO_FLAGS="mode=FAST_COMPILE" env: PART="." THEANO_FLAGS="mode=FAST_COMPILE"
script: script:
- export THEANO_FLAGS=$THEANO_FLAGS,blas.ldflags="-lblas -lgfortran",warn.ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise,gcc.cxxflags=-pipe - export THEANO_FLAGS=$THEANO_FLAGS,warn.ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise,gcc.cxxflags=-pipe
- python --version - python --version
- uname -a - uname -a
- free -m - free -m
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论