-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
30 lines (30 loc) · 988 Bytes
/
.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
language: python
env:
- PYTHON_VERSION=2.7 IPYTHON_VERSION=2.4.1
- PYTHON_VERSION=2.7 IPYTHON_VERSION=3.1.0
before_install:
- redis-server --version
- wget http://repo.continuum.io/miniconda/Miniconda3-3.7.3-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
# Update conda itself
- conda update --yes conda
install:
- travis_retry conda create --yes -n env_name python=$PYTHON_VERSION pip nose flake8 future==0.13.0 tornado
- source activate env_name
- pip install coveralls redis toredis ipython[all]==$IPYTHON_VERSION
- travis_retry pip install .
script:
- export MOI_CONFIG_FP=`pwd`/moi_config.txt
- ipython profile create general --parallel
- ipcluster start --n=2 --profile=general --daemonize=True
- sleep 30
- nosetests --with-doctest --with-coverage
- ./scripts/moi
- flake8 moi setup.py
- ./script_test.sh
services:
- redis-server
after_success:
- coveralls