Skip to content

Commit

Permalink
set up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Oct 20, 2012
1 parent 7099474 commit 7893d0c
Show file tree
Hide file tree
Showing 58 changed files with 82 additions and 59 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
@@ -0,0 +1,20 @@
language: perl
perl:
- "5.16"

install:
- export RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
- sudo apt-get -y install liblzma-dev bc
- cpanm --quiet --notest Devel::Cover
- cpanm --quiet --notest --installdeps .
- cpanm --quiet --notest Module::Package Module::Package::Ingy
- git clone --depth=100 --quiet git://github.com/ingydotnet/pegex-pm.git /tmp/pegex-pm
- cd /tmp/pegex-pm
- perl Makefile.PL
- make install
- cd -

script:
- PERL5OPT=-MDevel::Cover prove -lrsv t xt
- cover
- test "$(echo "$(cover -summary 2>/dev/null | tail -n6 | head -n1 | perl -pi -e '$_ = (split /\s+/)[7]') >= 95" | bc)" -ne 0
3 changes: 3 additions & 0 deletions Makefile.PL
Expand Up @@ -9,6 +9,7 @@ requires 'DBIx::Class::Candy';
requires 'DBIx::Class::Helpers';
requires 'DBIx::Class::UnicornLogger';
requires 'DBIx::Class::MaterializedPath';
requires 'DBIx::Class::DeploymentHandler';
requires 'Config::ZOMG';
requires 'IO::Compress::Xz';
requires 'App::Cmd';
Expand All @@ -19,6 +20,8 @@ requires 'Sub::Exporter::Progressive';
requires 'Test::Exit';
requires 'JSON';
requires 'Lingua::EN::Inflect';
requires 'Pegex';
requires 'DBIx::Class::Schema::Loader';

name 'Drinkup';
author 'Arthur Axel fREW Schmidt <frioux@gmail.com>';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App.pm
@@ -1,6 +1,6 @@
package DU::App;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'App::Cmd';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command.pm
@@ -1,6 +1,6 @@
package DU::App::Command;

use 5.16.1;
use 5.16.0;
use warnings;

use parent 'App::Cmd::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/drink.pm
@@ -1,6 +1,6 @@
package DU::App::Command::drink;

use 5.16.1;
use 5.16.0;
use warnings;

use parent 'App::Cmd::Subdispatch';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/drink/edit.pm
@@ -1,6 +1,6 @@
package DU::App::Command::drink::edit;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/drink/ls.pm
@@ -1,6 +1,6 @@
package DU::App::Command::drink::ls;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/drink/new.pm
@@ -1,6 +1,6 @@
package DU::App::Command::drink::new;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/drink/rm.pm
@@ -1,6 +1,6 @@
package DU::App::Command::drink::rm;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/drink/show.pm
@@ -1,6 +1,6 @@
package DU::App::Command::drink::show;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/ingredient.pm
@@ -1,6 +1,6 @@
package DU::App::Command::ingredient;

use 5.16.1;
use 5.16.0;
use warnings;

use parent 'App::Cmd::Subdispatch';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/ingredient/edit.pm
@@ -1,6 +1,6 @@
package DU::App::Command::ingredient::edit;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/ingredient/ls.pm
@@ -1,6 +1,6 @@
package DU::App::Command::ingredient::ls;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/ingredient/new.pm
@@ -1,6 +1,6 @@
package DU::App::Command::ingredient::new;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/ingredient/rm.pm
@@ -1,6 +1,6 @@
package DU::App::Command::ingredient::rm;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/ingredient/show.pm
@@ -1,6 +1,6 @@
package DU::App::Command::ingredient::show;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/inventory.pm
@@ -1,6 +1,6 @@
package DU::App::Command::inventory;

use 5.16.1;
use 5.16.0;
use warnings;

use parent 'App::Cmd::Subdispatch';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/inventory/add.pm
@@ -1,6 +1,6 @@
package DU::App::Command::inventory::add;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/inventory/ls.pm
@@ -1,6 +1,6 @@
package DU::App::Command::inventory::ls;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/inventory/rm.pm
@@ -1,6 +1,6 @@
package DU::App::Command::inventory::rm;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/maint.pm
@@ -1,6 +1,6 @@
package DU::App::Command::maint;

use 5.16.1;
use 5.16.0;
use warnings;

use parent 'App::Cmd::Subdispatch';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/maint/export.pm
@@ -1,6 +1,6 @@
package DU::App::Command::maint::export;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/maint/import.pm
@@ -1,6 +1,6 @@
package DU::App::Command::maint::import;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/App/Command/maint/migrate.pm
@@ -1,6 +1,6 @@
package DU::App::Command::maint::migrate;

use 5.16.1;
use 5.16.0;
use Moo;

extends 'DU::App::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/DeploymentHandler.pm
@@ -1,6 +1,6 @@
package DU::DeploymentHandler;

use 5.16.1;
use 5.16.0;
use Moo;
use DateTime;
use DU::Util;
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/RecipeParser.pm
@@ -1,6 +1,6 @@
package DU::RecipeParser;

use 5.16.1;
use 5.16.0;
use warnings;

use Pegex;
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/Schema.pm
@@ -1,6 +1,6 @@
package DU::Schema;

use 5.16.1;
use 5.16.0;
use warnings;

use parent 'DBIx::Class::Schema';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/Schema/Result.pm
@@ -1,6 +1,6 @@
package DU::Schema::Result;

use 5.16.1;
use 5.16.0;
use warnings;

use parent 'DBIx::Class::Core';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/Schema/ResultSet/Drink.pm
@@ -1,6 +1,6 @@
package DU::Schema::ResultSet::Drink;

use 5.16.1;
use 5.16.0;
use warnings;

use parent 'DU::Schema::ResultSet';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/Schema/ResultSet/Ingredient.pm
@@ -1,6 +1,6 @@
package DU::Schema::ResultSet::Ingredient;

use 5.16.1;
use 5.16.0;
use warnings;

use parent 'DU::Schema::ResultSet';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/Schema/ResultSet/InventoryItem.pm
@@ -1,6 +1,6 @@
package DU::Schema::ResultSet::InventoryItem;

use 5.16.1;
use 5.16.0;
use warnings;

use parent 'DU::Schema::ResultSet';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/Schema/ResultSet/User.pm
@@ -1,6 +1,6 @@
package DU::Schema::ResultSet::User;

use 5.16.1;
use 5.16.0;
use warnings;

use parent 'DU::Schema::ResultSet';
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/Util.pm
@@ -1,6 +1,6 @@
package DU::Util;

use 5.16.1;
use 5.16.0;
use warnings;

use Sub::Exporter::Progressive -setup => {
Expand Down
2 changes: 1 addition & 1 deletion lib/DU/WebApp.pm
Expand Up @@ -2,7 +2,7 @@

package DU::WebApp;

use 5.16.1;
use 5.16.0;
use Web::Simple;

use DU::WebApp::Machine;
Expand Down
2 changes: 1 addition & 1 deletion maint/gen-migration
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use 5.16.1;
use 5.16.0;
use warnings;

use rlib;
Expand Down
2 changes: 1 addition & 1 deletion t/editors/drink-edit-1
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use 5.16.1;
use 5.16.0;
use warnings;

my $file = shift;
Expand Down
2 changes: 1 addition & 1 deletion t/editors/drink-edit-recipe-1
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use 5.16.1;
use 5.16.0;
use warnings;

my $file = shift;
Expand Down
2 changes: 1 addition & 1 deletion t/editors/drink-new-1
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use 5.16.1;
use 5.16.0;
use warnings;

my $file = shift;
Expand Down
2 changes: 1 addition & 1 deletion t/editors/drink-new-2
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use 5.16.1;
use 5.16.0;
use warnings;

my $file = shift;
Expand Down
2 changes: 1 addition & 1 deletion t/editors/drink-new-based-on
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use 5.16.1;
use 5.16.0;
use YAML qw(LoadFile DumpFile);
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion t/editors/drink-new-recipe-1
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use 5.16.1;
use 5.16.0;
use warnings;

my $file = shift;
Expand Down
2 changes: 1 addition & 1 deletion t/editors/ingredient-edit-1
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use 5.16.1;
use 5.16.0;
use warnings;

my $file = shift;
Expand Down
2 changes: 1 addition & 1 deletion t/editors/ingredient-edit-2
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use 5.16.1;
use 5.16.0;
use warnings;

my $file = shift;
Expand Down
2 changes: 1 addition & 1 deletion t/editors/ingredient-new-1
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use 5.16.1;
use 5.16.0;
use warnings;

my $file = shift;
Expand Down
2 changes: 1 addition & 1 deletion t/editors/ingredient-new-2
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use 5.16.1;
use 5.16.0;
use warnings;

my $file = shift;
Expand Down
2 changes: 1 addition & 1 deletion t/editors/ingredient-new-3
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use 5.16.1;
use 5.16.0;
use warnings;

my $file = shift;
Expand Down
2 changes: 1 addition & 1 deletion t/integration/app/drink.t
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use 5.16.1;
use 5.16.0;
use warnings;

use Test::More;
Expand Down

0 comments on commit 7893d0c

Please sign in to comment.