forked from Theano/Theano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (58 loc) · 1.95 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# After changing this file, check it on:
# http://lint.travis-ci.org/
sudo: false
cache:
directories:
- $HOME/download
- $HOME/.cache/pip
language: python
python:
- "2.6"
- "3.3"
# command to install dependencies
before_install:
# Install miniconda to avoid compiling scipy
- mkdir -p download
- cd download
- wget -c http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- cd ..
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda
install:
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then conda create --yes -q -n pyenv mkl python=2.6 numpy=1.6.2 scipy=0.11 nose=1.1 pyparsing=1.5 pip flake8==2.3 six==1.9.0; 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 pyparsing=1.5 pip flake8==2.3 six==1.9.0; fi
- source activate pyenv
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install pydot; fi
- pip install . --no-deps
# command to run tests
env:
- PART="sandbox sparse scalar tensor/nnet scan_module"
- PART="tensor/tests/test_basic.py tensor/signal compile gof misc tests compat"
- PART="-e test_basic.py tensor/tests"
matrix:
include:
- python: "3.3"
env: PART="." THEANO_FLAGS="mode=FAST_COMPILE"
- python: "2.6"
env: PART="." THEANO_FLAGS="mode=FAST_COMPILE"
script:
- export THEANO_FLAGS=$THEANO_FLAGS,warn.ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise,gcc.cxxflags=-pipe
- python --version
- uname -a
- free -m
- df -h
- 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"
- theano-nose -v $PART
# - theano-cache list
#after_script:
after_failure:
- cat /home/travis/.pip/pip.log
#after_success:
cache: apt