forked from deeptools/pyGenomeTracks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_locally.sh
23 lines (20 loc) · 960 Bytes
/
test_locally.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
source $(dirname $(dirname $(which conda)))/etc/profile.d/conda.sh
for TRAVIS_PYTHON_VERSION in 3.6 3.7 3.8; do
conda create -n pgt_test_${TRAVIS_PYTHON_VERSION} --yes -c bioconda -c conda-forge python=$TRAVIS_PYTHON_VERSION --file requirements_travis.txt
conda activate pgt_test_${TRAVIS_PYTHON_VERSION}
conda install --yes -c conda-forge -c bioconda pytest ghostscript coverage coverage-badge
python setup.py install
coverage run -m py.test
coverage html
coverage-badge -f -o docs/coverage.svg
conda deactivate
done
TRAVIS_PYTHON_VERSION=3.9
conda create -n pgt_test_${TRAVIS_PYTHON_VERSION} --yes -c bioconda -c conda-forge python=$TRAVIS_PYTHON_VERSION
conda activate pgt_test_${TRAVIS_PYTHON_VERSION}
conda install --yes -c conda-forge -c bioconda numpy bedtools h5py pytest ghostscript
pip install -r requirements_travis.txt
python setup.py install
py.test pygenometracks --doctest-modules
conda deactivate