Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / .travis.yml @ 42c8483c

Historique | Voir | Annoter | Télécharger (2,9 ko)

1
---
2
dist: trusty
3
language: perl
4
install:
5
  - sudo apt-get update
6
  - sudo apt-get --no-install-recommends install devscripts python python3 ruby php5-cli gawk ksh zsh pylint
7
  - sudo apt-get --no-install-recommends install pkg-config libdb-dev libvirt-dev libexpat-dev
8
  # - Munin/Plugin.pm is in "munin-node" on precise
9
  - sudo apt-get --no-install-recommends install munin-node
10
  - sudo apt-get --no-install-recommends install libsys-virt-perl
11

    
12
  # Modules used by test script
13
  - cpanm --notest Capture::Tiny
14
  - cpanm --notest File::Find
15
  - cpanm --notest Test::More
16

    
17
  # Modules used by plugins
18
  - cpanm --notest Asterisk::AMI
19
  - cpanm --notest BerkeleyDB
20
  - cpanm --notest Cache::Memcached
21
  - cpanm --notest DBD::Pg
22
  - cpanm --notest Data::Dump
23
  - cpanm --notest Date::Manip
24
  - cpanm --notest Date::Parse
25
  - cpanm --notest DateTime::Format::ISO8601
26
  - cpanm --notest Device::SerialPort
27
  - cpanm --notest FCGI::Client
28
  - cpanm --notest File::ReadBackwards
29
  - cpanm --notest Graphics::ColorObject
30
  - cpanm --notest IPC::Run3
31
  - cpanm --notest IPC::ShareLite
32
  - cpanm --notest JSON
33
  - cpanm --notest JSON::Any
34
  - cpanm --notest Mail::Sendmail
35
  - cpanm --notest Modern::Perl
36
  - cpanm --notest MooseX::POE
37
  - cpanm --notest Net::DNS
38
  - cpanm --notest Net::OpenSSH
39
  - cpanm --notest Net::SNMP
40
  - cpanm --notest Net::Telnet
41
  - cpanm --notest Net::Telnet::Cisco
42
  - cpanm --notest POE
43
  - cpanm --notest POE::Component::IRC
44
  - cpanm --notest POE::Quickie
45
  - cpanm --notest Proc::ProcessTable
46
  - cpanm --notest Redis
47
  - cpanm --notest Switch
48
  - cpanm --notest Text::Iconv
49
  - cpanm --notest WWW::Mechanize::TreeBuilder
50
  - cpanm --notest YAML
51
  - cpanm --notest XML::LibXML
52
  - cpanm --notest XML::Simple
53
  - cpanm --notest XML::Smart
54
  - cpanm --notest XML::Twig
55
  - cpanm --notest nvidia::ml
56
  - cpanm --notest experimental
57
  # Modules used by plugins, but missing on cpan
58
  # - File::Tail::Multi
59
  # - Sun::Solaris::Kstat
60
  # - VMware::VIRuntime
61
  # - MythTV
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"