提交 318b6f8c authored 作者: Frederic's avatar Frederic

Change the PART to have only one that need SciPy and install it only for this PART.

This speed up the test time of the other part.
上级 58d3239e
......@@ -14,16 +14,20 @@ install:
# If we don't install numpy before SciPy 0.10.1, the SciPy installations fails.
- "pip install -q numpy==1.5 --use-mirrors"
# We support scipy 0.7.2, but it is not available on pypi anymore.
# So we test with 0.8. Our internal buildbot have 0.7.2
- "pip install -q scipy==0.8 --use-mirrors"
# So we test with 0.8. Our internal buildbot have 0.7.2.
# We install it later only for the PART that need it.
# - "pip install -q scipy==0.8 --use-mirrors"
- "pip install . --no-deps --use-mirrors"
# command to run tests
env:
- PART="theano/tensor/nnet/ theano/tensor/signal/ theano/compile/ theano/gof/ theano/misc/ theano/scalar/ theano/tests/"
- PART="theano/scan_module/ theano/sandbox theano/sparse"
- PART="theano/tensor/nnet/ theano/tensor/signal/ theano/compile/ theano/gof/ theano/misc/ theano/tests/ theano/compat"
# This part is select such that all scipy code is there.
# We install scipy only for this part to make the test time faster.
- PART="theano/scan_module/ theano/sandbox theano/sparse theano/scalar/"
- PART="theano/tensor/tests/test_basic.py"
- PART="-e test_basic.py theano/tensor/tests"
script:
- if [ `expr "$PART" : '.*sparse'` -gt "0" ]; then pip install scipy==0.8 --use-mirrors; fi
- export THEANO_FLAGS=warn.ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise
- python --version
- uname -a
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论