1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
* How to build Config::Model from git repository
:PROPERTIES:
:CUSTOM_ID: how-to-build-configmodel-from-git-repository
:END:
=Config::Model= is build with [[http://dzil.org/][Dist::Zilla]]. This
pages details how to install the tools and dependencies required to
build this module.
** Install tools and dependencies
:PROPERTIES:
:CUSTOM_ID: install-tools-and-dependencies
:END:
*** Debian, Ubuntu and derivatives
:PROPERTIES:
:CUSTOM_ID: debian-ubuntu-and-derivatives
:END:
Run
#+begin_example
$ sudo apt install libdist-zilla-perl libdist-zilla-app-command-authordebs-perl
$ dzil authordebs --install
$ sudo apt build-dep libconfig-model-perl
#+end_example
*** Other systems
:PROPERTIES:
:CUSTOM_ID: other-systems
:END:
Run
#+begin_example
$ cpamn Dist::Zilla
$ dzil authordeps -missing | cpanm --notest
$ cpanm --quiet --notest --skip-satisfied MouseX::NativeTraits
$ dzil listdeps --missing | cpanm --notest
#+end_example
NB: The author would welcome pull requests that explains how to install
these tools and dependencies using native package of other
distributions.
The following dependencies are optional, but are required for tests:
- =JSON=
- =YAML::PP=
- =Config::INI::Reader=
** Build Config::Model
:PROPERTIES:
:CUSTOM_ID: build-configmodel
:END:
Run
#+begin_example
dzil build
#+end_example
or
#+begin_example
dzil test
#+end_example
=dzil= may complain about missing =EmailNotify= or =Twitter= plugin. You
may ignore this or edit [[file:dist.ini]] to comment out the last 2
sections. These are useful only to the author when releasing a new
version.
=dzil= may also return an error like =Cannot determine local time zone=.
In this case, you should specify explicitely your timezone in a =TZ=
environement variable. E.g run =dzil= this way:
#+begin_example
TZ="Europe/Paris" dzil test
#+end_example
The list of possible timezones is provided by
[[https://metacpan.org/pod/DateTime::TimeZone::Catalog][DateTime::TimeZone::Catalog]] documentation.
|