forked from biocore/redbiom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (32 loc) · 1.12 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
sudo: true
language: python
env:
- PYTHON_VERSION=3.5
- PYTHON_VERSION=2.7
services:
- redis-server
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libevent-dev
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
install:
- conda create --yes -n test-env -c bioconda python=$PYTHON_VERSION biom-format requests pandas click==6.7 nose sqlite joblib nltk msgpack-python
- source activate test-env
- if [ ${PYTHON_VERSION} = "2.7" ]; then conda install -c biocore --yes scikit-bio==0.4.2; fi
- if [ ${PYTHON_VERSION} = "3.5" ]; then conda install --yes scikit-bio==0.5.1; fi
- pip install flake8 msgpack
- git clone https://github.com/nicolasff/webdis
- pushd webdis
- make
- ./webdis &
- popd
- alias md5=md5sum
- pip install -e . --no-deps
script:
- flake8 --ignore=E731 redbiom
- redbiom summarize contexts # will return a nonzero exit status if it cannot communicate with the default host
- export REDBIOM_HOST=http://127.0.0.1:7379
- make test