forked from biocore/LabControl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (52 loc) · 1.9 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
52
language: python
sudo: required
group: deprecated-2017Q4
env:
global:
- PYTHON_VERSION=3.5
before_install:
- redis-server --port 7777 &
- wget http://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:
# Install Qiita first since it is needed for the environment and the tests
- 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==1.5.5 sphinx-bootstrap-theme ipython[all]==2.4.1
- pip install https://github.com/biocore/qiita/archive/master.zip --process-dependency-links
# Create the Qiita environment
- qiita-env make --no-load-ontologies
# Start the qiita server in the backend
- qiita pet webserver --no-build-docs start &
# Deactivate the Qiita environment
- source deactivate
# Set the labman config file
- cp labman/db/support_files/test_config.cfg ~/.labman.cfg
# Install labman
- travis_retry conda create --yes -n labman python=$PYTHON_VERSION pip nose flake8 mock
- source activate labman
- python --version
- pip install -U pip
- pip install sphinx sphinx-bootstrap-theme coveralls
- pip install https://github.com/qiita-spots/qiita_client/archive/master.zip
- travis_retry pip install .
# Apply the labman patches to the database
- psql -d qiita_test -f labman/db/support_files/db_patch.sql
- psql -d qiita_test -f labman/db/support_files/db_patch_manual.sql
script:
- nosetests --with-doctest --with-coverage -v --cover-package=labman
- flake8 labman setup.py scripts/*
- labman/db/tests/integration_tests.py
addons:
postgresql: "9.3"
services:
- redis-server
- postgresql
after_success:
- coveralls