forked from matted-zz/census
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (36 loc) · 1.49 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
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
notifications:
on_success: change
on_failure: change
# Miniconda-based setup of the Scipy stack Based on
# https://gist.github.com/dan-blanchard/7045057.
# Setup anaconda
before_install:
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then wget http://repo.continuum.io/miniconda/Miniconda-3.8.3-Linux-x86_64.sh -O miniconda.sh; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then wget http://repo.continuum.io/miniconda/Miniconda3-3.8.3-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda/bin:/home/travis/miniconda3/bin:$PATH
- conda update --yes conda
- conda create --yes -n condaenv python=$TRAVIS_PYTHON_VERSION
- conda install --yes -n condaenv pip
- source activate condaenv
# Install packages
install:
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then conda install --yes python=$TRAVIS_PYTHON_VERSION argparse; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then conda install --yes python=$TRAVIS_PYTHON_VERSION pysam; fi
- conda install --yes python=$TRAVIS_PYTHON_VERSION atlas numpy scipy setuptools
# Removed pysam, since it isn't in the Conda repos for 3.*. My setup.py will get it and build it from source (slower, but it works).
- python setup.py install
script: python calculate_libsize.py example_duplicate_histo.txt
before_script:
- pip install coveralls
- coverage run --source=census setup.py test
sudo: false
after_success:
- coveralls