提交 a71586e3 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Try stages

上级 7f72b5af
...@@ -10,9 +10,7 @@ cache: ...@@ -10,9 +10,7 @@ cache:
language: python language: python
python: # For now, Python versions have to be listed in the "jobs" matrix
- "2.7"
- "3.4"
# NB: # NB:
# In before_install and install sections below, # In before_install and install sections below,
...@@ -42,32 +40,61 @@ install: ...@@ -42,32 +40,61 @@ install:
# nose-exclude plugin allow us to tell nosetests to exclude folder with --exclude-dir=path/to/directory. # nose-exclude plugin allow us to tell nosetests to exclude folder with --exclude-dir=path/to/directory.
- pip install nose-exclude nose-timer - pip install nose-exclude nose-timer
# command to run tests jobs:
env:
- PART="theano/tests/test_flake8.py" DOC=1
- PART="-e test_flake8.py theano/compat theano/compile theano/d3viz theano/gof theano/misc theano/sandbox theano/scalar theano/scan_module theano/sparse theano/tests theano/typed_list"
- PART="theano/tensor -e test_basic.py --exclude-dir=theano/tensor/nnet"
- PART="theano/tensor/tests/test_basic.py"
- PART="theano/tensor/nnet -e test_abstract_conv.py"
- PART="theano/tensor/nnet/tests/test_abstract_conv.py"
matrix:
fast_finish: true
include: include:
- python: "3.4" # define prototype for doctest
env: PART="--exclude-dir=theano/tensor -e test_flake8.py ." THEANO_FLAGS="mode=FAST_COMPILE" - &doctest
- python: "3.4" stage: doc
env: PART="theano/tensor --exclude-dir=theano/tensor/nnet" THEANO_FLAGS="mode=FAST_COMPILE" python: "2.7"
- python: "3.4" env: DOC=1 PART="theano/tests/test_flake8.py"
env: PART="theano/tensor/nnet" THEANO_FLAGS="mode=FAST_COMPILE" # re-use prototype, changing the Python version
- python: "2.7" - <<: *doctest
env: PART="--exclude-dir=theano/tensor -e test_flake8.py ." THEANO_FLAGS="mode=FAST_COMPILE,floatX=float32" python: "3.4"
- python: "2.7" - &normaltest
env: PART="theano/tensor --exclude-dir=theano/tensor/nnet" THEANO_FLAGS="mode=FAST_COMPILE,floatX=float32" stage: test
- python: "2.7" python: "2.7"
env: PART="theano/tensor/nnet" THEANO_FLAGS="mode=FAST_COMPILE,floatX=float32" env: PART="theano/compat theano/compile theano/d3viz theano/gof theano/misc theano/sandbox theano/scalar theano/scan_module theano/sparse theano/tests -e test_flake8.py theano/typed_list"
- <<: *normaltest
python: "3.4"
- <<: *normaltest
env: PART="theano/tensor -e test_basic.py --exclude-dir=theano/tensor/nnet"
- <<: *normaltest
python: "3.4"
env: PART="theano/tensor -e test_basic.py --exclude-dir=theano/tensor/nnet"
- <<: *normaltest
env: PART="theano/tensor/tests/test_basic.py"
- <<: *normaltest
python: "3.4"
env: PART="theano/tensor/tests/test_basic.py"
- <<: *normaltest
env: PART="theano/tensor/nnet -e test_abstract_conv.py"
- <<: *normaltest
python: "3.4"
env: PART="theano/tensor/nnet -e test_abstract_conv.py"
- <<: *normaltest
env: PART="theano/tensor/nnet/tests/test_abstract_conv.py"
- <<: *normaltest
python: "3.4"
env: PART="theano/tensor/nnet/tests/test_abstract_conv.py"
- <<: *normaltest
env: FAST_COMPILE=1 PART="--exclude-dir=theano/tensor -e test_flake8.py ."
- <<: *normaltest
python: "3.4"
env: FAST_COMPILE=1 PART="--exclude-dir=theano/tensor -e test_flake8.py ."
- <<: *normaltest
env: FAST_COMPILE=1 PART="theano/tensor --exclude-dir=theano/tensor/nnet"
- <<: *normaltest
python: "3.4"
env: FAST_COMPILE=1 PART="theano/tensor --exclude-dir=theano/tensor/nnet"
- <<: *normaltest
env: FAST_COMPILE=1 PART="theano/tensor/nnet"
- <<: *normaltest
python: "3.4"
env: FAST_COMPILE=1 PART="theano/tensor/nnet"
script: script:
- if [[ $FAST_COMPILE == "1" ]]; then export THEANO_FLAGS=$THEANO_FLAGS,mode=FAST_COMPILE; fi
- if [[ $FAST_COMPILE == "1" && $TRAVIS_PYTHON_VERSION == '2.7' ]]; then export THEANO_FLAGS=$THEANO_FLAGS,floatX=float32; fi
- export THEANO_FLAGS=$THEANO_FLAGS,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
- export MKL_NUM_THREADS=1 - export MKL_NUM_THREADS=1
- export OMP_NUM_THREADS=1 - export OMP_NUM_THREADS=1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论