-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
43 lines (43 loc) · 1.59 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
language: python
sudo: false
env:
- PYTHON_VERSION=2.7
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- 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
# Update conda itself
- conda update --yes conda
install:
- travis_retry conda create --yes -n qiita python=2.7 pip nose flake8
pyzmq networkx pyparsing natsort mock future libgfortran
'pandas>=0.18' 'scipy>0.13.0' 'numpy>=1.7' 'h5py>=2.3.1'
- source activate qiita
- pip install sphinx sphinx-bootstrap-theme coveralls
- pip install https://github.com/biocore/qiita/archive/master.zip --process-dependency-links
- qiita-env make --no-load-ontologies
- export QIITA_SERVER_CERT=$HOME/miniconda3/envs/qiita/lib/python2.7/site-packages/qiita_core/support_files/server.crt
- source deactivate
- travis_retry conda create --yes -n env_name python=$PYTHON_VERSION pip nose flake8 coverage numpy pandas 'h5py>=2.3.1' matplotlib seaborn
- source activate env_name
- pip install https://github.com/qiita-spots/qiita_client/archive/master.zip
- travis_retry pip install .
before_script:
- source activate qiita
- qiita pet webserver start &
script:
- source activate env_name
- psql -d qiita_test -f install-plugin.sql
- sleep 5 # give enough time to the webserver to start
- nosetests --with-doctest --with-coverage
- flake8 qtp_mass_spec setup.py scripts
addons:
postgresql: "9.3"
services:
- redis-server
- postgresql
after_success:
- coveralls