Skip to content

Commit

Permalink
Merge pull request #111 from sanger-pathogens/farm5
Browse files Browse the repository at this point in the history
Farm5
  • Loading branch information
seretol authored Mar 17, 2020
2 parents dc0b5d4 + c6a2e76 commit 134bd87
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ addons:
- libmysqlclient-dev
- autoconf
- libtool
- libdb-dev
- build-essential
- libssl-dev
- libexpat1-dev
- libdbd-mysql-perl
perl:
- 5.14
services:
Expand Down
10 changes: 5 additions & 5 deletions install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ sudo make install

cd $start_dir

cpanm Dist::Zilla
dzil authordeps --missing | cpanm
dzil listdeps | cpanm
cpanm File::Slurp DBI XML::TreePP Bio::DB::EUtilities Parallel::ForkManager Spreadsheet::ParseExcel Test::MockObject Time::Format DBD::mysql YAML::XS IO::Capture::Stderr
cpanm --notest Dist::Zilla
dzil authordeps --missing | cpanm --notest
dzil listdeps | cpanm --notest
cpanm --notest File::Slurp DBI XML::TreePP Bio::DB::EUtilities Parallel::ForkManager Spreadsheet::ParseExcel Test::MockObject Time::Format DBD::mysql YAML::XS IO::Capture::Stderr
export LD_LIBRARY_PATH=/usr/local/lib

#Template

set +eu
set +x
set +x
4 changes: 3 additions & 1 deletion lib/Pathogens/ConfigSettings.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ has 'settings' => ( is => 'rw', isa => 'HashRef', lazy_build => 1 );
sub _build_settings
{
my $self = shift;
my %config_settings = %{ Load( scalar read_file("config/".$self->environment."/".$self->filename.""))};
my $directory = (defined $ENV{'UPDATE_PIPELINE_CONFIG_PATH'}) ? $ENV{'UPDATE_PIPELINE_CONFIG_PATH'} : "config/" . $self->environment ;

my %config_settings = %{ Load( scalar read_file($directory . "/" . $self->filename.""))};
return \%config_settings;
}

Expand Down

0 comments on commit 134bd87

Please sign in to comment.