提交 16018ae7 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Run one part on python 3.3, add FAST_COMPILE

- fix install of pydot by using the right version of pyparsing on python 2 - pydot does not run on python 3 for the moment - run tests on the installed files, not the source
上级 86e65c4d
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
language: python language: python
python: python:
- "2.6" - "2.6"
# - "2.7"
# - "3.2"
# command to install dependencies # command to install dependencies
before_install: before_install:
...@@ -20,25 +18,38 @@ before_install: ...@@ -20,25 +18,38 @@ 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.
- conda create --yes -q -n py26 python=2.6 numpy=1.6 scipy=0.11 nose=1.1 pip - 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
- source activate py26 - 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
- pip install pydot - source activate pyenv
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install pydot; fi
- pip install . --no-deps --use-mirrors - pip install . --no-deps --use-mirrors
# command to run tests # command to run tests
env: env:
- PART="theano/scan_module/" - PART="scan_module"
- PART="theano/sandbox theano/sparse theano/scalar/ theano/tensor/nnet/" - PART="sandbox sparse scalar tensor/nnet"
- PART="theano/tensor/tests/test_basic.py theano/tensor/signal/ theano/compile/ theano/gof/ theano/misc/ theano/tests/ theano/compat" - PART="tensor/tests/test_basic.py tensor/signal compile gof misc tests compat"
- PART="-e test_basic.py theano/tensor/tests" - PART="-e test_basic.py tensor/tests"
matrix:
# Explicitly add one part to be run with Python 3, and a complete run in FAST_COMPILE
include:
- python: "3.3"
env: PART="tensor/tests/test_basic.py tensor/signal compile gof misc tests compat"
- python: "2.6"
env: PART="." THEANO_FLAGS="mode=FAST_COMPILE"
script: script:
- export THEANO_FLAGS=blas.ldflags="-lblas -lgfortran",warn.ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise - export THEANO_FLAGS=$THEANO_FLAGS,blas.ldflags="-lblas -lgfortran",warn.ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise
- python --version - python --version
- uname -a - uname -a
- free -m - free -m
- df -h - df -h
- ulimit -a - ulimit -a
# Move out of Theano so the import will use the installed version
- cd ..
# Move to the path of the installed version
- cd $(python -c 'import theano; import os; print(os.path.split(theano.__file__)[0])')
- echo "$PART" - echo "$PART"
- theano-nose -v $PART - theano-nose -v $PART
- theano-cache list - theano-cache list
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论