/
.travis.yml
58 lines (55 loc) · 2.15 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
53
54
55
56
57
58
sudo: required
dist: trusty
addons:
apt:
packages:
- gdb
- apport
- libhdf5-serial-dev
language: python
compiler:
- gcc
env:
- PYTHON_VERSION=3.5 EDITABLE_PIP=1
- PYTHON_VERSION=3.5 EDITABLE_PIP=0
before_install:
# https://github.com/springmeyer/travis-coredump/blob/master/.travis.yml
- ulimit -c
- ulimit -a -S
- ulimit -a -H
- cat /proc/sys/kernel/core_pattern
- 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 -n test-env --file https://data.qiime2.org/distro/core/qiime2-2017.5-conda-linux-64.txt python=$PYTHON_VERSION
- source activate test-env
# needed for the hdf5 dev tools
- conda install --yes -c conda-forge cython
- conda install --yes flake8 nose
- sed -i 's/^CXXBASE=.*/CXXBASE=clang++/' `which h5c++`
- sed -i 's/^CXXLINKERBASE=.*/CXXLINKERBASE=clang++/' `which h5c++`
- export CC=`which h5c++`
- pip install -q https://github.com/qiime2/q2lint/archive/master.zip
# verify both installation methods
- 'if [ ${EDITABLE_PIP} ]; then
pip install -e . || travis_terminate 1;
else
pip install . || travis_terminate 1;
fi'
- pushd sucpp; make test; make main; make api; make capi_test; popd
script:
- ulimit -c unlimited -S
- pushd sucpp; ./test_su; popd
- nosetests
- flake8 q2_state_unifrac setup.py
- q2lint
- ./sucpp/ssu
- for i in $(find ./ -maxdepth 1 -name 'core*' -print); do gdb $(pwd)/sucpp/ssu core* -ex "thread apply all bt" -ex "set pagination 0" -batch; done;
- ls -lrt
- qiime state-unifrac unweighted --i-table table.qza --i-phylogeny tree.qza --o-distance-matrix ssu_result.qza --verbose
- qiime state-unifrac unweighted --i-table table.qza --i-phylogeny tree.qza --o-distance-matrix ssu_result_thread.qza --verbose --p-threads 2
- qiime diversity beta-phylogenetic --p-metric unweighted_unifrac --i-table table.qza --i-phylogeny tree.qza --o-distance-matrix sk_result.qza
- python compare_dms.py ssu_result.qza sk_result.qza
- python compare_dms.py ssu_result_thread.qza sk_result.qza