【发布时间】:2013-09-17 16:57:39
【问题描述】:
我尝试从Module::Starter 基础构建 a Perl distribution for a home-made module。我的机器上的每个测试都通过了,但是当我将它上传到 CPAN 以从 cpantesters.org 获得更多 universal 测试时,some test failed on other architectures or OS,但我不明白为什么。我可以在测试报告中看到我的一些先决条件在测试之前没有安装,但我希望它。
我尝试将这些依赖项列在 Makefile.PL PREREQ_PM 哈希和 then in the TEST_REQUIRES hash 中,但并没有改变很多结果。
然后,当我从本地机器中删除依赖项并尝试使用Cpanm 安装我的模块时,它首先下载依赖项,测试通过并且安装成功。
这是我第一次尝试模块,所以我想我错过了一些东西,也许我太习惯了Cpanm 魔法。感谢您的帮助。
【问题讨论】:
-
我有seen this on SO,这可能是我搜索的内容:从 Makefile.PL 触发一种
Build installdeps -
Build和Makefile.PL有点矛盾... :-)
标签: perl testing module makefile prerequisites