Révision 42c8483c
travis: assemble module search path for mixture of cpan and apt modules
| .travis.yml | ||
|---|---|---|
| 13 | 13 |
- cpanm --notest Capture::Tiny |
| 14 | 14 |
- cpanm --notest File::Find |
| 15 | 15 |
- cpanm --notest Test::More |
| 16 |
# |
|
| 16 |
|
|
| 17 | 17 |
# Modules used by plugins |
| 18 | 18 |
- cpanm --notest Asterisk::AMI |
| 19 | 19 |
- cpanm --notest BerkeleyDB |
| ... | ... | |
| 59 | 59 |
# - Sun::Solaris::Kstat |
| 60 | 60 |
# - VMware::VIRuntime |
| 61 | 61 |
# - MythTV |
| 62 |
script: "PERL5LIB=$PERL5LIB:/usr/share/perl5 prove" |
|
| 62 |
|
|
| 63 |
# Mixing modules installed via cpan and apt is a bit problematic: |
|
| 64 |
# * perl (as it is used by travis) seems to be built without threading support |
|
| 65 |
# * perl modules installed via apt were built against a threaded perl (e.g. DBI/DBI.so) |
|
| 66 |
# Thus we need to make sure, that the modules installed via CPAN and the binary modules prepared by |
|
| 67 |
# travis are preferred over the binary perl modules installed via apt (e.g. below /usr/lib/perl). |
|
| 68 |
# Since the PERL5LIB environment variable precedes all other search paths, we use the sequence |
|
| 69 |
# below in order to achieve the following order of preference: |
|
| 70 |
# 1) /usr/share/perl5 (unknown requirement) |
|
| 71 |
# 2) perl search path defined by travis environment |
|
| 72 |
# 3) binary system-wide installed perl modules (via apt) |
|
| 73 |
script: |
|
| 74 |
- dpkg -L libsys-virt-perl |
|
| 75 |
- mkdir -p ~/system-perl/auto |
|
| 76 |
- ln -s /usr/lib/perl5/Sys ~/system-perl/ |
|
| 77 |
- ln -s /usr/lib/perl5/auto/Sys ~/system-perl/auto/ |
|
| 78 |
- "PERL5LIB=$PERL5LIB:/usr/share/perl5:~/system-perl prove" |
|
Formats disponibles : Unified diff