-
Notifications
You must be signed in to change notification settings - Fork 74
/
.travis.yml
executable file
·64 lines (63 loc) · 1.8 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
59
60
61
62
63
language: python
sudo: required
dist: xenial
python:
- 'nightly'
- '3.7'
- '3.6'
- '3.5'
- '2.7'
- 'pypy'
- 'pypy3'
install:
- pip wheel -f wheelhouse cython pysam numpy || true
- pip install -f wheelhouse cython pysam biopython requests pyfasta pyvcf numpy || true
- pip install -e git+https://github.com/nedbat/coveragepy.git#egg=coverage
- python setup.py install
- if [ ! -f samtools-1.2 ]; then curl -sL https://github.com/samtools/samtools/releases/download/1.2/samtools-1.2.tar.bz2 | tar -xjv; fi
- cd samtools-1.2
- make
- export PATH=$PATH:$PWD
- cd ..
- if [ ! -f htslib-1.4 ]; then curl -sL https://github.com/samtools/htslib/releases/download/1.4/htslib-1.4.tar.bz2 | tar -xjv; fi
- cd htslib-1.4
- make
- export PATH=$PATH:$PWD
- cd ..
before_script:
- python tests/data/download_gene_fasta.py
script: nosetests --with-coverage --cover-package=pyfaidx
deploy:
provider: pypi
user: mdshw5
password:
secure: MbSaeuitkVTZqxa0PJ3RcR1aMf+B/sMbcx2sWOo9xfLlRFDFpYWJZ0EfXWEhrVu2YWXpBsasgunTDWSi0jNcZMH92MzOC+UTVYr45LO5sy6hm4iSiAgm/DPgYWdjP0SFKr7eL/HWPS+gHvgkXL1upleX21O358bxaezoasuKFvs=
on:
all_branches: true
python: 3.7
tags: true
repo: mdshw5/pyfaidx
matrix:
include:
- os: windows
language: sh
python: "3.7"
before_install:
- choco install python3
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH"
- python -m virtualenv $HOME/venv
- source $HOME/venv/Scripts/activate
allow_failures:
- python: nightly
- python: pypy3
- python: pypy
- os: windows
fast_finish: true
cache:
directories:
- tests/data
- samtools-1.2
- htslib-1.4
- wheelhouse
after_success:
- bash <(curl -s https://codecov.io/bash)