Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: PerlDancer/Dancer2
...
head fork: PerlDancer/Dancer2
  • 4 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
View
3  .gitignore
@@ -10,3 +10,6 @@ MYMETA.yml
contrib/sessions/
contrib/logs/
*.sw?
+tools/plugins_auto_tests/perlbrew
+tools/plugins_auto_tests/plugins_list
+tools/plugins_auto_tests/result.csv
View
2  lib/Dancer/Plugin.pm
@@ -133,7 +133,7 @@ sub register_plugin {
my $plugin_version = eval "\$${plugin}::VERSION" || '??';
# make sure the plugin is compatible with this version of Dancer
- ( grep { $_ eq $dancer_major_version } @$supported_versions || $ENV{DANCER_FORCE_PLUGIN_REGISTRATION} )
+ ( grep { $_ eq $dancer_major_version } @$supported_versions) || $ENV{DANCER_FORCE_PLUGIN_REGISTRATION}
or croak "$plugin $plugin_version does not support Dancer $dancer_major_version.";
View
2  t/config.t
@@ -88,7 +88,7 @@ is_deeply [$fail->config_files],
like(
exception { $fail->config },
- qr{not a valid YAML file},
+ qr{YAML},
'Configuration file parsing failure',
);
View
14 tools/plugins_auto_tests/Makefile
@@ -3,12 +3,18 @@ HERE=${PWD}
PERLBREW_DIR=${HERE}/perlbrew
PERLBREW=export PERLBREW_ROOT=${PERLBREW_DIR} && source ${PERLBREW_DIR}/etc/bashrc && PERLBREW_ROOT=${PERLBREW_DIR} ${PERLBREW_DIR}/bin/perlbrew
-CPANM_DANCER1=${PERLBREW} switch dancer1_plugin_tests && export PERLBREW_ROOT=${PERLBREW_DIR} && source ${PERLBREW_DIR}/etc/bashrc && PERLBREW_ROOT=${PERLBREW_DIR} ${PERLBREW_DIR}/bin/cpanm
-CPANM_DANCER2=${PERLBREW} switch dancer2_plugin_tests && export PERLBREW_ROOT=${PERLBREW_DIR} && source ${PERLBREW_DIR}/etc/bashrc && PERLBREW_ROOT=${PERLBREW_DIR} ${PERLBREW_DIR}/bin/cpanm
+CPANM_DANCER1=${PERLBREW} exec --with dancer1_plugin_tests ${PERLBREW_DIR}/bin/cpanm
+CPANM_DANCER2=${PERLBREW} exec --with dancer2_plugin_tests ${PERLBREW_DIR}/bin/cpanm
all: got_curl got_bash got_perlbrew_perl plugins_list
echo "Plugin name,Pass on Dancer 1,Pass on Dancer 2" > result.csv
- @for i in `cat plugins_list`; do pass_d1=0; pass_d2=0; ${CPANM_DANCER1} -n --installdeps $$i && ${CPANM_DANCER1} --test-only $$i && pass_d1=1; ${CPANM_DANCER2} -n --installdeps $$i && DANCER_FORCE_PLUGIN_REGISTRATION=1 ${CPANM_DANCER2} --test-only $$i && pass_d2=1; echo "$$i,$$pass_d1,$$pass_d2" >> result.csv ; done
+ @for i in `cat plugins_list`; do pass_d1=0; pass_d2=0; \
+ echo " ---------- TESTING on Dancer 1 : $$i"; \
+ ${CPANM_DANCER1} -n --installdeps $$i && ${CPANM_DANCER1} --test-only $$i && pass_d1=1; \
+ echo " ---------- TESTING on Dancer 2 : $$i"; \
+ ${CPANM_DANCER2} -n --installdeps $$i && DANCER_FORCE_PLUGIN_REGISTRATION=1 ${CPANM_DANCER2} --test-only $$i && pass_d2=1; \
+ echo "$$i,$$pass_d1,$$pass_d2" >> result.csv; \
+ done;
clean:
rm -rf plugins_list
@@ -36,7 +42,7 @@ perlbrew_dancer1_plugin_tests:
perlbrew_dancer2_plugin_tests:
${PERLBREW} list | grep dancer2_plugin_tests > /dev/null || ( ${PERLBREW} install -j 2 -n perl-5.16.1 --as dancer2_plugin_tests )
-# TODO : install Dancer2 from curr directory
+ ${CPANM_DANCER2} install ${HERE}/..
plugins_list:
${HERE}/get_modules_list.pl > plugins_list

No commit comments for this range

Something went wrong with that request. Please try again.