Fix bug #212
[bioperl-live.git] / .travis.yml
blob09798121c0a77901a22802e616edfb9e081c5986
1 language: perl
2 perl:
3   - "5.24"
4   - "5.20"
5   - "5.18"
6   - "5.16"
7   - "5.14"
9 sudo: false
10 env: PERL_CPANM_OPT="--notest --force --skip-satisfied"
12 addons:
13   apt:
14     packages:
15       - libdb-dev
16       - graphviz
17       - libgd2-xpm-dev
18       - libxml2-dev
20 install:
21     #These are recommended or required Perl libraries:
22     - "cpanm GD 2>&1 CGI | tail -n 1"
23     - "cpanm HTML::TableExtract DBI Data::Stag DB_File 2>&1 | tail -n 1"
24     - "cpanm DBD::mysql DBD::Pg DBD::SQLite 2>&1 | tail -n 1"
25     - "cpanm Algorithm::Munkres Array::Compare Convert::Binary::C Error 2>&1 | tail -n 1"
26     - "cpanm Graph SVG SVG::Graph GraphViz 2>&1 | tail -n 1"
27     - "cpanm XML::DOM::XPath XML::Parser XML::Parser::PerlSAX 2>&1 | tail -n 1"
28     - "cpanm XML::SAX XML::SAX::Writer XML::Simple XML::LibXML XML::Twig XML::Writer 2>&1 | tail -n 1"
29     - "cpanm PostScript::TextBlock Set::Scalar Sort::Naturally YAML | tail -n 1"
30     - "cpanm Math::Random Spreadsheet::ParseExcel | tail -n 1"
31     - "cpanm Bio::Phylo | tail -n 1"
32     - "cpanm Test::Weaken | tail -n 1"
33     - "cpanm Test::Memory::Cycle | tail -n 1"
34     #Test coverage from Coveralls
35     #- cpanm --quiet --notest Devel::Cover::Report::Coveralls
36     #for some reason tests and deps aren't skipped here.  Will have to look into it more...
37     #git repos, seems to only work for simple checkouts, so pure perl only (TODO: look into before_script for more detail)
38     #- "git clone https://github.com/bioperl/Bio-Root.git; export PERL5LIB=$( pwd )/Bio-Root/lib:$PERL5LIB"
39     #This installs BioPerl itself:
40     - "perl ./Build.PL --accept"
42 script:
43     - "./Build test"
44     #Devel::Cover coverage options are: statement, branch, condition, path, subroutine, pod, time, all and none
45     #- "./Build build && cover -test -report coveralls" #complete version coverage test
46     #- PERL5OPT=-MDevel::Cover=+ignore,prove,-coverage,statement,subroutine prove -lr t #limited version coverage test
47     #- cover -report coveralls
49 after_success:
50     - ./travis_scripts/trigger-dockerhub.sh
52 #TODO - send emails to bioperl-guts-l
53 notifications:
54   email:
55     recipients:
56       - bioperl-guts-l@lists.open-bio.org
57       - cjfields1@gmail.com
58     on_success: change
59     on_failure: change
61 # whitelist branches
62 branches:
63   only:
64     - master
65     - /^release-[1-9]*-[0-9]*-[0-9]*$/