Skip to content
Browse files

set up CI

  • Loading branch information...
1 parent 7099474 commit 7893d0c71282ef2d71a7d38f99777060778f061b @frioux committed Oct 20, 2012
Showing with 82 additions and 59 deletions.
  1. +20 −0 .travis.yml
  2. +3 −0 Makefile.PL
  3. +1 −1 lib/DU/App.pm
  4. +1 −1 lib/DU/App/Command.pm
  5. +1 −1 lib/DU/App/Command/drink.pm
  6. +1 −1 lib/DU/App/Command/drink/edit.pm
  7. +1 −1 lib/DU/App/Command/drink/ls.pm
  8. +1 −1 lib/DU/App/Command/drink/new.pm
  9. +1 −1 lib/DU/App/Command/drink/rm.pm
  10. +1 −1 lib/DU/App/Command/drink/show.pm
  11. +1 −1 lib/DU/App/Command/ingredient.pm
  12. +1 −1 lib/DU/App/Command/ingredient/edit.pm
  13. +1 −1 lib/DU/App/Command/ingredient/ls.pm
  14. +1 −1 lib/DU/App/Command/ingredient/new.pm
  15. +1 −1 lib/DU/App/Command/ingredient/rm.pm
  16. +1 −1 lib/DU/App/Command/ingredient/show.pm
  17. +1 −1 lib/DU/App/Command/inventory.pm
  18. +1 −1 lib/DU/App/Command/inventory/add.pm
  19. +1 −1 lib/DU/App/Command/inventory/ls.pm
  20. +1 −1 lib/DU/App/Command/inventory/rm.pm
  21. +1 −1 lib/DU/App/Command/maint.pm
  22. +1 −1 lib/DU/App/Command/maint/export.pm
  23. +1 −1 lib/DU/App/Command/maint/import.pm
  24. +1 −1 lib/DU/App/Command/maint/migrate.pm
  25. +1 −1 lib/DU/DeploymentHandler.pm
  26. +1 −1 lib/DU/RecipeParser.pm
  27. +1 −1 lib/DU/Schema.pm
  28. +1 −1 lib/DU/Schema/Result.pm
  29. +1 −1 lib/DU/Schema/ResultSet/Drink.pm
  30. +1 −1 lib/DU/Schema/ResultSet/Ingredient.pm
  31. +1 −1 lib/DU/Schema/ResultSet/InventoryItem.pm
  32. +1 −1 lib/DU/Schema/ResultSet/User.pm
  33. +1 −1 lib/DU/Util.pm
  34. +1 −1 lib/DU/WebApp.pm
  35. +1 −1 maint/gen-migration
  36. +1 −1 t/editors/drink-edit-1
  37. +1 −1 t/editors/drink-edit-recipe-1
  38. +1 −1 t/editors/drink-new-1
  39. +1 −1 t/editors/drink-new-2
  40. +1 −1 t/editors/drink-new-based-on
  41. +1 −1 t/editors/drink-new-recipe-1
  42. +1 −1 t/editors/ingredient-edit-1
  43. +1 −1 t/editors/ingredient-edit-2
  44. +1 −1 t/editors/ingredient-new-1
  45. +1 −1 t/editors/ingredient-new-2
  46. +1 −1 t/editors/ingredient-new-3
  47. +1 −1 t/integration/app/drink.t
  48. +1 −1 t/integration/app/help.t
  49. +1 −1 t/integration/app/ingredient.t
  50. +1 −1 t/integration/app/inventory.t
  51. +1 −1 t/integration/app/maint.t
  52. +1 −1 t/lib/A.pm
  53. +1 −1 t/parser.t
  54. +1 −1 t/schema.t
  55. +1 −1 t/unit/util.t
  56. +1 −1 usr/migrations/SQLite/upgrade/1-2/005-case-insensitive-check.pl
  57. +1 −1 usr/migrations/_common/deploy/1/010-init.pl
  58. +4 −4 xt/profile.t
View
20 .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
View
3 Makefile.PL
@@ -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';
@@ -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>';
View
2 lib/DU/App.pm
@@ -1,6 +1,6 @@
package DU::App;
-use 5.16.1;
+use 5.16.0;
use Moo;
extends 'App::Cmd';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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;
View
2 lib/DU/RecipeParser.pm
@@ -1,6 +1,6 @@
package DU::RecipeParser;
-use 5.16.1;
+use 5.16.0;
use warnings;
use Pegex;
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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';
View
2 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 => {
View
2 lib/DU/WebApp.pm
@@ -2,7 +2,7 @@
package DU::WebApp;
-use 5.16.1;
+use 5.16.0;
use Web::Simple;
use DU::WebApp::Machine;
View
2 maint/gen-migration
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
-use 5.16.1;
+use 5.16.0;
use warnings;
use rlib;
View
2 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;
View
2 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;
View
2 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;
View
2 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;
View
2 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;
View
2 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;
View
2 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;
View
2 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;
View
2 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;
View
2 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;
View
2 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;
View
2 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;
View
2 t/integration/app/help.t
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
-use 5.16.1;
+use 5.16.0;
use warnings;
use Test::More;
View
2 t/integration/app/ingredient.t
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
-use 5.16.1;
+use 5.16.0;
use warnings;
use Test::More;
View
2 t/integration/app/inventory.t
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
-use 5.16.1;
+use 5.16.0;
use warnings;
use Test::More;
View
2 t/integration/app/maint.t
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
-use 5.16.1;
+use 5.16.0;
use warnings;
use Test::More;
View
2 t/lib/A.pm
@@ -1,6 +1,6 @@
package A;
-use 5.16.1;
+use 5.16.0;
use warnings;
use Data::Dumper::Concise;
View
2 t/parser.t
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
-use 5.16.1;
+use 5.16.0;
use warnings;
use Test::More;
View
2 t/schema.t
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
-use 5.16.1;
+use 5.16.0;
use warnings;
use Test::More;
View
2 t/unit/util.t
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
-use 5.16.1;
+use 5.16.0;
use warnings;
use Test::More;
View
2 usr/migrations/SQLite/upgrade/1-2/005-case-insensitive-check.pl
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
-use 5.16.1;
+use 5.16.0;
use warnings;
use DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::ScriptHelpers
View
2 usr/migrations/_common/deploy/1/010-init.pl
@@ -1,6 +1,6 @@
#!perl
-use 5.16.1;
+use 5.16.0;
use warnings;
use DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::ScriptHelpers 'schema_from_schema_loader';
View
8 xt/profile.t
@@ -1,4 +1,4 @@
-use 5.16.1;
+use 5.16.0;
use warnings;
use Test::More;
@@ -70,7 +70,7 @@ tt(
}
);
-for my $method (qw(none some every)) {
+for my $method (qw(none_by_user_inventory some_by_user_inventory every_by_user)) {
for my $retrieval (qw(count all)) {
tt( "$method $retrieval" => sub {
$s->resultset('Drink')->$method($user)->$retrieval
@@ -79,11 +79,11 @@ for my $method (qw(none some every)) {
}
tt( "nearly count" => sub {
- $s->resultset('Drink')->nearly($user, 1)->count
+ $s->resultset('Drink')->nearly_by_user($user, 1)->count
});
tt( "nearly all" => sub {
- $s->resultset('Drink')->nearly($user, 1)->all
+ $s->resultset('Drink')->nearly_by_user($user, 1)->all
});
sub tt {

0 comments on commit 7893d0c

Please sign in to comment.
Something went wrong with that request. Please try again.