Skip to content

Commit

Permalink
travis - cache blast tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
tseemann committed Sep 6, 2019
1 parent e2675a3 commit 66f957a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ perl:

env:
- BLASTVER=2.9.0
- CACHEDIR=tarballs

cache:
directories:
- $CACHEDIR

install:
- "cpanm --quiet --notest Moo JSON List::MoreUtils"
- "wget ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/${BLASTVER}/ncbi-blast-${BLASTVER}+-x64-linux.tar.gz"
- "tar zxvf ncbi-blast-${BLASTVER}+-x64-linux.tar.gz"
- "mkdir -p $CACHEDIR"
- "wget -N -nc -c -P $CACHEDIR http://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/${BLASTVER}/ncbi-blast-${BLASTVER}+-x64-linux.tar.gz"
- "tar zxvf $CACHEDIR/ncbi-blast-${BLASTVER}+-x64-linux.tar.gz"
- "curl https://raw.githubusercontent.com/tseemann/any2fasta/master/any2fasta > bin/any2fasta"
- "chmod +x bin/any2fasta"
- "export PATH=$PWD/bin:$PWD/ncbi-blast-${BLASTVER}+/bin:$PATH"
Expand Down

0 comments on commit 66f957a

Please sign in to comment.