forked from kundajelab/simdna
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
27 lines (22 loc) · 992 Bytes
/
.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
# 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
notifications:
email: false
# Setup Anaconda
before_install:
- wget http://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
- conda update --yes conda
install:
# pip cannot easily install scipy or matplotlib on the Travis CI server
- conda install --yes python=$TRAVIS_PYTHON_VERSION scipy matplotlib graphviz
# Install the cloned dragonn package from source using Anaconda
- pip install .
# run a simulation from simulations.py
script: python -c 'from simdna.simulations import simulate_single_motif_detection; sequences, labels, embedding_arr = simulate_single_motif_detection("SPI1_disc1", 20, 500, 500, 0.4)'