forked from bodo-hugo-barwich/Process
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 1.35 KB
/
.travis.yml
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
language: perl
perl:
- "5.32.0"
- "5.28"
- "5.24"
- "5.16"
- "5.10"
before_install:
# Show Location
- >
echo "USER: " $(whoami) ;
echo "HOME: '$HOME'" ;
pwd ;
ls -lah ;
# List pre-installed Perl Packages
- dpkg --get-selections | grep -i perl | sort
# Install missing Packages with apt-get
- echo "apt-get - Install missing Packages"
- sudo apt-get update && sudo apt-get install libdata-dump-perl libcapture-tiny-perl
- >
if [ "$TRAVIS_PERL_VERSION" == "5.10" ]; then
sudo apt-get install liblocal-lib-perl ;
sudo apt-get install libdevel-patchperl-perl libcpan-perl-releases-perl libmodule-build-perl libmodule-build-tiny-perl ;
sudo apt-get install libextutils-config-perl libextutils-helpers-perl libextutils-installpaths-perl ;
sudo apt-get install libfile-which-perl libipc-run3-perl libhttp-tiny-perl ;
fi
- echo "cpanm - Install missing Packages"
- perlbrew available
- perlbrew list
# Do Perl 5.10 Installation
- >
if [ "$TRAVIS_PERL_VERSION" == "5.10" ]; then
perl -Mlocal::lib ;
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) ;
cpanm -v --installdeps --with-feature=test_perl-5.10 . ;
/home/travis/perl5/bin/perl-build --definitions ;
/home/travis/perl5/bin/perl-build 5.10.1 ~/perl5/perlbrew/perls/perl-5.10.1 && perlbrew switch 5.10.1 ;
perl -v ;
fi