Simplify some code
[bioperl-live.git] / .travis.yml
blobccd77559ebc92825657cc2cf950059ceda1a9dd5
1 language: perl
2 perl:
3   - "5.20"
4   - "5.18"
5   - "5.16"
6   - "5.14"
7   - "5.12"
8   - "5.10"
10 env: PERL_CPANM_OPT="--notest --force --skip-satisfied"
12 install:
13     #This should solve problem installing Perl's DB_File & GraphViz
14     - "sudo apt-get install libdb-dev graphviz libgd2-xpm-dev libxml2-dev 2>&1 | tail -n 4"
15     #These are recommended or required Perl libraries:
16     - "cpanm GD 2>&1 | tail -n 1"
17     - "cpanm HTML::TableExtract DBI Data::Stag DB_File 2>&1 | tail -n 1"
18     - "cpanm DBD::mysql DBD::Pg DBD::SQLite 2>&1 | tail -n 1"
19     - "cpanm Algorithm::Munkres Array::Compare Convert::Binary::C Error 2>&1 | tail -n 1"
20     - "cpanm Graph SVG SVG::Graph GraphViz 2>&1 | tail -n 1"
21     - "cpanm XML::DOM::XPath XML::Parser XML::Parser::PerlSAX 2>&1 | tail -n 1"
22     - "cpanm XML::SAX XML::SAX::Writer XML::Simple XML::LibXML XML::Twig XML::Writer 2>&1 | tail -n 1"
23     - "cpanm PostScript::TextBlock Set::Scalar Sort::Naturally YAML | tail -n 1"
24     - "cpanm Math::Random SOAP::Lite Spreadsheet::ParseExcel | tail -n 1"
25     - "cpanm Bio::ASN1::EntrezGene | tail -n 1"
26     - "cpanm Bio::Phylo | tail -n 1"
27     - "cpanm Test::Weaken | tail -n 1"
28     - "cpanm Test::Memory::Cycle | tail -n 1"
29     #for some reason tests and deps aren't skipped here.  Will have to look into it more...
30     #git repos, seems to only work for simple checkouts, so pure perl only (TODO: look into before_script for more detail)
31     - "git clone https://github.com/bioperl/Bio-Root.git; export PERL5LIB=$( pwd )/Bio-Root/lib:$PERL5LIB"
32     #This installs BioPerl itself:
33     - "perl ./Build.PL --accept"
35 script:
36     - "./Build test"
38 #TODO - send emails to bioperl-guts-l
39 notifications:
40   email: 
41     recipients:
42       - bioperl-guts-l@lists.open-bio.org
43       - cjfields1@gmail.com
44     on_success: change
45     on_failure: change
47 # whitelist branches
48 branches:
49   only:
50     - master