-
Notifications
You must be signed in to change notification settings - Fork 92
/
.travis.yml
53 lines (47 loc) · 1.85 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
language: perl
sudo: false
perl:
- "5.26"
addons:
apt:
packages:
- zip
- gzip
- git
- curl
- libdb-dev
env:
- BLASTVER=2.9.0
install:
- "cpanm --quiet --notest JSON Path::Tiny LWP::Simple Bio::Perl"
- "wget http://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"
- "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"
script:
- "abricate --setupdb"
- "abricate --version"
- "abricate --help"
- "abricate --check"
- "abricate --list"
- "! abricate --doesnotexist"
- "! abricate --threads 0"
- "! (abricate test/assembly.fa | grep '~~~')"
- "abricate test/assembly.fa > 1.tab"
- "abricate test/assembly.fa.gz > 2.tab"
- "abricate test/assembly.gbk > 3.tab"
- "abricate test/assembly.gbk.gz > 4.tab"
- "abricate --nopath test/assembly.gbk.gz | grep '^assembly.gbk.gz'"
- "abricate --summary {1,2,3,4}.tab > summary.tab"
- "abricate --summary 1.tab 2.tab 1.tab |& grep 'duplicate'"
- "abricate --summary <(cat 1.tab 2.tab 3.tab) | wc -l | grep -w 4"
- "abricate test/assembly.txt |& grep ERROR"
- "abricate not_exist.embl |& grep ERROR"
- "abricate --threads `nproc` test/assembly.fa.bz2 | grep -i FOSFOMYCIN"
- "abricate --threads `nproc` test/assembly.fa.bz2 | grep -i lactam"
- "for DB in `abricate --list | cut -f1 | tail -n +2`; do abricate --db $DB test/assembly.fa > /dev/null ; done"
- "abricate-get_db --help"
- "abricate-get_db --db ncbi --dbdir ."
- "! grep 'FUSIDIC ACID' ncbi/sequences"
- "abricate --threads `nproc` --fofn test/fofn.txt"