forked from deeptools/deepTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (50 loc) · 2.56 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
language: c
env:
- TRAVIS_PYTHON_VERSION=3.6
- TRAVIS_PYTHON_VERSION=2.7
os:
- linux
- osx
jobs:
include:
- stage: galaxy
env:
- TESTGALAXY="1"
- TRAVIS_PYTHON_VERSION=3.6
- stage: galaxy
env:
- TESTGALAXY="2"
- TRAVIS_PYTHON_VERSION=3.6
- stage: galaxy
env:
- TESTGALAXY="3"
- TRAVIS_PYTHON_VERSION=3.6
# Setup anaconda
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PYTHON_VERSION" == "2.7" ]] ; then curl https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -o miniconda.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PYTHON_VERSION" == "3.6" ]] ; then curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$TRAVIS_PYTHON_VERSION" == "2.7" ]] ; then curl https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -o miniconda.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$TRAVIS_PYTHON_VERSION" == "3.6" ]] ; then curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o miniconda.sh ; fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PYTHON_VERSION" == "3.6" && ${TESTGALAXY:-"0"} != "0" ]] ; then conda create -c conda-forge -c bioconda -n planemo planemo; fi
# Useful for debugging any issues with conda
- conda info -a
# Install packages
install:
- conda install --yes -c conda-forge -c bioconda python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib==2.1.2 nose flake8 plotly==2.0.12 pysam pyBigWig py2bit cython
- python setup.py install
# command to run tests
script:
- deeptools --version
- if [[ ${TESTGALAXY:-"0"} == "0" ]] ; then flake8 . --exclude=.venv,.build,foo,build,deeptoolsintervals/__init__.py --ignore=E501,F403,E402,F999,F405,E722 ; fi
- if [[ ${TESTGALAXY:-"0"} == "0" ]] ; then export owd=`pwd` ; fi
- if [[ ${TESTGALAXY:-"0"} == "0" ]] ; then cd ~/ && nosetests --with-doctest -sv deeptools ; fi
- if [[ ${TESTGALAXY:-"0"} == "0" ]] ; then nosetests --with-doctest -sv deeptoolsintervals ; fi
- if [[ ${TESTGALAXY:-"0"} == "0" ]] ; then cd ${owd} ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && ${TESTGALAXY:-"0"} == "1" ]] ; then /home/travis/miniconda/envs/planemo/bin/planemo lint galaxy/wrapper/ ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && ${TESTGALAXY:-"0"} != "0" ]] ; then ./.planemo.sh ${TESTGALAXY}; fi
sudo: false