language: python
sudo: false
python:
    - '3.4'
    - '3.3'
    - '3.2'
    - '2.7'
    - '2.6'
    - pypy
    - pypy3
install:
    - pip install biopython || true
    - python setup.py install
    - pip install coveralls
    - pip install pysam pyvcf
before_script:
    - /usr/local/bin/pip install --user biopython
    - if [ ! -e "tests/data/genes.fasta" ]; then /usr/bin/python tests/data/download_gene_fasta.py; fi
script: nosetests --with-coverage --cover-package=pyfaidx
deploy:
  provider: pypi
  user: mdshw5
  password:
    secure: WaAW6Vk1yjC851PKaeiJGNyZ6wZ2baqlixUSvRDXoT673yFrlp32IMHofmP/TwVxnLMfQxhAb3r7dYYDYnNw4n3vPInJ+Yy35RG1WQ2XUOpOEZ8n2fWczxKfkJjQ5ob03DCSFPeL5h+FYfyHRAfPb9K8OtEawKRvCfaUXE0teko=
  on:
    all_branches: true
    python: 2.6
    tags: true
    repo: mdshw5/pyfaidx
cache:
    - wheelhouse
    - tests/data
    - pip
after_success:
    - coveralls

language: python
sudo: false
python:
    - '3.4'
    - '3.3'
    - '3.2'
    - '2.7'
    - '2.6'
    - pypy
    - pypy3
install:
    - pip install biopython || true
    - python setup.py install
    - pip install coveralls
    - pip install pysam || true
    - pip install pyvcf
before_script:
    - /usr/local/bin/pip install --user biopython
    - /usr/bin/python tests/data/download_gene_fasta.py; fi
script: nosetests --with-coverage --cover-package=pyfaidx
deploy:
  provider: pypi
  user: mdshw5
  password:
    secure: WaAW6Vk1yjC851PKaeiJGNyZ6wZ2baqlixUSvRDXoT673yFrlp32IMHofmP/TwVxnLMfQxhAb3r7dYYDYnNw4n3vPInJ+Yy35RG1WQ2XUOpOEZ8n2fWczxKfkJjQ5ob03DCSFPeL5h+FYfyHRAfPb9K8OtEawKRvCfaUXE0teko=
  on:
    all_branches: true
    python: 2.6
    tags: true
    repo: mdshw5/pyfaidx
cache:
    - wheelhouse
    - tests/data
    - pip
after_success:
    - coveralls

Allow pip install pysam to fail on pypy.
Allow pip install pysam to fail on pypy.
