Skip to content

Commit 66f957a

Browse files
committed
travis - cache blast tarball
1 parent e2675a3 commit 66f957a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ perl:
77

88
env:
99
- BLASTVER=2.9.0
10+
- CACHEDIR=tarballs
11+
12+
cache:
13+
directories:
14+
- $CACHEDIR
1015

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

0 commit comments

Comments
 (0)