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