-
Notifications
You must be signed in to change notification settings - Fork 66
/
.travis.yml
41 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
38
39
40
41
language: python
python:
- 2.7
notifications:
email: false
# Setup anaconda
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python-dev
# - sudo apt-get install -qq libatlas-dev libatlas-base-dev liblapack-dev gfortran
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda2/bin:/home/travis/miniconda/bin:$PATH
- conda update --yes conda
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# Install packages
install:
- travis_retry conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib nose dateutil pytest
# Coverage packages are on my binstar channel
- conda install --yes -c dan_blanchard python-coveralls nose-cov
# - travis_retry pip install -r requirements.txt
- travis_retry pip install theano filelock
- travis_retry pip install git+https://github.com/mila-udem/platoon
- python setup.py install
# Run test
script:
- source bin/cpu_env.sh
# - export THEANO_FLAGS="$THEANO_FLAGS,blas.ldflags='-lblas -lgfortran'"
- py.test
# Coverage test
# - nosetests --with-cov --cover-tests deepy --logging-level=INFO
# Calculate coverage
after_success:
- coveralls --config_file .coveragerc