Skip to content

Commit

Permalink
Merge branch 'topic/travis-scripts'
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Fields committed Sep 2, 2013
2 parents 63012f2 + bbeb1c0 commit f3d9afe
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .travis.yml
@@ -1,33 +1,33 @@
language: perl
perl:
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
#- "5.16"
#- "5.14"
#- "5.12"
#- "5.10"

env: PERL_CPANM_OPT="--notest --force --skip-satisfied"

before_install:
- "bash ./travis_scripts/dependency_installs"

install:
#This should solve problem installing Perl's DB_File & GraphViz
- "sudo apt-get install libdb-dev graphviz libgd2-xpm-dev libxml2-dev 2>&1 | tail -n 4"
#These are recommended or required Perl libraries:
#These are recommended or required Perl libraries
- "cpanm GD 2>&1 | tail -n 1"
- "cpanm HTML::TableExtract DBI Data::Stag DB_File 2>&1 | tail -n 1"
- "cpanm DBD::mysql DBD::Pg DBD::SQLite 2>&1 | tail -n 1"
- "cpanm Algorithm::Munkres Array::Compare Convert::Binary::C Error 2>&1 | tail -n 1"
- "cpanm Graph SVG SVG::Graph GraphViz 2>&1 | tail -n 1"
- "cpanm XML::DOM::XPath XML::Parser XML::Parser::PerlSAX 2>&1 | tail -n 1"
- "cpanm XML::SAX XML::SAX::Writer XML::Simple XML::LibXML XML::Twig XML::Writer 2>&1 | tail -n 1"
- "cpanm PostScript::TextBlock Set::Scalar Sort::Naturally YAML | tail -n 1"
- "cpanm Math::Random SOAP::Lite Spreadsheet::ParseExcel | tail -n 1"
- "cpanm Bio::Phylo | tail -n 1"
#for some reason tests and deps aren't skipped here. Will have to look into it more...
- "cpanm -f -n Bio::ASN1::EntrezGene | tail -n 1"
#git repos, seems to only work for simple checkouts, so pure perl only (TODO: look into before_script for more detail)
- "git clone https://github.com/bioperl/Bio-Root.git; export PERL5LIB=$( pwd )/Bio-Root/lib:$PERL5LIB"
- "cpanm PostScript::TextBlock Set::Scalar Sort::Naturally YAML 2>&1 | tail -n 1"
- "cpanm Math::Random SOAP::Lite Spreadsheet::ParseExcel 2>&1 | tail -n 1"
- "cpanm Bio::Phylo 2>&1 | tail -n 1"
- "export PERL5LIB=$( pwd )/travis_builds/Bio-Root/lib:$( pwd ):$PERL5LIB; cpanm Bio::ASN1::EntrezGene 2>&1 | tail -n 1"
#This installs BioPerl itself:
- "perl ./Build.PL --accept"
- "perl -I$( pwd )/travis_builds/Bio-Root/lib ./Build.PL --accept"

script:
- "./Build test"
Expand All @@ -40,5 +40,4 @@ notifications:
branches:
only:
- master
- v1
- v1_cherry
- topic/travis-scripts
24 changes: 24 additions & 0 deletions travis_scripts/dependency_installs
@@ -0,0 +1,24 @@
#!/bin/bash

mkdir travis_builds

cd travis_builds

# samtools
git clone https://github.com/samtools/samtools.git
cd samtools
git checkout tags/0.1.18
perl -p -i -e 's/^(CFLAGS=\s+)[^\n]*/$1-g -Wall -O2 -fPIC #-m64 #-arch ppc/' Makefile
make 2>&1 | tail -n 1
cd ..

# push Bio-Root to front
git clone https://github.com/bioperl/Bio-Root.git
export PERL5LIB=$( pwd )/Bio-Root/lib:$( pwd ):$PERL5LIB

export SAMTOOLS=$( pwd )/samtools

echo "Bio::DB::Sam installation"
cpanm Bio::DB::Sam 2>&1 | tail -n 10

exit 0

0 comments on commit f3d9afe

Please sign in to comment.