forked from mila-iqia/blocks-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.38 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
sudo: false
cache:
directories:
- $TRAVIS_BUILD_DIR/data
branches:
only:
- master
language: python
matrix:
include:
- python: 2.7
env: FLOATX=float32
- python: 3.4
env: FLOATX=float64
before_install:
- # Setup Python environment with BLAS libraries
- wget -q http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- conda update -q --yes conda
- export FUEL_DATA_PATH=$TRAVIS_BUILD_DIR/data
install:
# Install all Python dependencies
- curl -O https://raw.githubusercontent.com/mila-udem/blocks/master/req-travis-conda.txt
- conda install -q --yes python=$TRAVIS_PYTHON_VERSION --file req-travis-conda.txt
- pip install -q -r https://raw.githubusercontent.com/bartvm/blocks/master/req-travis-pip.txt
- pip install -q git+git://github.com/mila-udem/blocks.git -r https://raw.githubusercontent.com/mila-udem/blocks/master/requirements.txt
- pip install -q git+git://github.com/mila-udem/blocks-extras.git
- conda install -q --yes bokeh==0.9.0
- conda install -q --yes pandas
- curl https://raw.githubusercontent.com/mila-udem/fuel/master/.travis-data.sh | bash -s -- mnist
script:
- export THEANO_FLAGS=floatX=$FLOATX,optimizer=fast_compile
- export FUEL_FLOATX=$FLOATX
- bokeh-server &
- nose2 -v tests