forked from qiita-spots/qtp-visualization
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
51 lines (51 loc) · 2.25 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
44
45
46
47
48
49
50
51
language: python
sudo: required
group: deprecated-2017Q4
env:
- PYTHON_VERSION=3.5
before_install:
- 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
- conda update --yes conda
install:
# installing Qiita in it's own environment python2.7
- travis_retry conda create -q --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/dev.zip --process-dependency-links
# as we don't need redbiom we are going to use the default redis port
- sed 's/PORT = 7777/PORT = 6379/g' $HOME/miniconda3/envs/qiita/lib/python2.7/site-packages/qiita_core/support_files/config_test.cfg > config_test.cfg
- export QIITA_CONFIG_FP=${PWD}/config_test.cfg
- export QIITA_SERVER_CERT=$HOME/miniconda3/envs/qiita/lib/python2.7/site-packages/qiita_core/support_files/server.crt
- qiita-env make --no-load-ontologies
- source deactivate
# installing this plugin
- wget https://data.qiime2.org/distro/core/qiime2-2017.12-py35-linux-conda.yml
- travis_retry conda env create -q -n qtp-visualization --file qiime2-2017.12-py35-linux-conda.yml
- rm qiime2-2017.12-py35-linux-conda.yml
- source activate qtp-visualization
- pip install https://github.com/qiita-spots/qiita_client/archive/master.zip
- pip install coveralls flake8
- travis_retry pip install . --process-dependency-links
- configure_visualization_types --env-script "source activate qtp-visualization" --server-cert $QIITA_SERVER_CERT
before_script:
- source activate qiita
- qiita plugins update
- qiita pet webserver --no-build-docs start &
script:
- source activate qtp-visualization
- sleep 5 # give enough time to the webserver to start
- start_visualization_types "https://localhost:21174" register ignored
- nosetests --with-doctest --with-coverage -v --cover-package=qtp_visualization
- flake8 qtp_visualization setup.py scripts
addons:
postgresql: "9.3"
services:
- redis-server
- postgresql
after_success:
- coveralls