annotate ecoli_serotyping/.travis.yml @ 20:210dafd169d9 draft

Uploaded
author jpetteng
date Sun, 07 Jan 2018 14:41:36 -0500
parents 7c687720c9e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
1 language: python
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
2 python:
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
3 # We don't actually use the Travis Python, but this keeps it organized.
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
4 - "3.6"
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
5 install:
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
6 - sudo apt-get update
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
7 # We do this conditionally because it saves us some downloading if the
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
8 # version is the same.
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
9 - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
10 wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
11 else
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
12 wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
13 fi
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
14 - bash miniconda.sh -b -p $HOME/miniconda
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
15 - export PATH="$HOME/miniconda/bin:$PATH"
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
16 - hash -r
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
17 - conda config --set always_yes yes --set changeps1 no
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
18 - conda update -q conda
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
19 # Useful for debugging any issues with conda
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
20 - conda info -a
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
21 - conda config --add channels bioconda
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
22 - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION samtools bowtie2 mash bcftools biopython nose blast pandas seqtk
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
23 - source activate test-environment
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
24 - python setup.py install
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
25
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
26 script:
7c687720c9e9 Uploaded
jpetteng
parents:
diff changeset
27 - nosetests