-
Notifications
You must be signed in to change notification settings - Fork 71
/
.travis.yml
39 lines (34 loc) · 1.27 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
# Config file for automatic testing at travis-ci.org
# Conda testing for Travis CI from https://gist.github.com/dan-blanchard/7045057
language: python
python:
- 2.7
- 3.5
notifications:
email: false
# Setup Anaconda
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
# Install in batch mode
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
install:
# Create a conda environment for the desired Python version and install
# the dependencies that pip cannot easily install on the Travis CI server
- conda create --yes --name dragonn-$TRAVIS_PYTHON_VERSION python=$TRAVIS_PYTHON_VERSION
scipy matplotlib=1.5.3 pytest Shapely mkl-service
# Use the new environment
- source activate dragonn-$TRAVIS_PYTHON_VERSION
# Confirm the Python version
- python --version
# Install the cloned dragonn package from source
# Process the deeplift and simdna dependency_links in setup.py
# Note that Dependency Links processing has been deprecated per
# https://github.com/pypa/pip/issues/3939 so this will need to be updated in
# the future
- pip install . --process-dependency-links
# Run dragonn binary and tests
script:
- dragonn --help
- py.test