Skip to content

Commit

Permalink
Put in a warning about setting GITPAN_GITHUB_ACCESS_TOKEN in the tests.
Browse files Browse the repository at this point in the history
I don't have a better idea right now how to make this more pleasant to deal with.
  • Loading branch information
schwern committed Mar 7, 2015
1 parent fe30ebd commit b0d6556
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/lib/Gitpan/Test.pm
Expand Up @@ -10,6 +10,8 @@ use Test::Most ();
method import($class: ...) {
my $caller = caller;

warn "GITPAN_GITHUB_ACCESS_TOKEN is not set, tests which talk to Github will probably fail" unless $ENV{GITPAN_GITHUB_ACCESS_TOKEN};

$ENV{GITPAN_CONFIG_DIR} //= "."->path->absolute;
$ENV{GITPAN_TEST} //= 1;

Expand Down

0 comments on commit b0d6556

Please sign in to comment.