-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
100 lines (92 loc) · 3.17 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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
language: perl
perl: '5.22.0'
jobs:
include:
- dist: bionic
name: bionic
- dist: focal
name: focal
- dist: jammy
name: jammy
- dist: noble
name: noble
- arch: ppc64le
dist: bionic
name: bionic-ppc64le
- arch: ppc64le
dist: focal
name: focal-ppc64le
- arch: ppc64le
dist: jammy
name: jammy-ppc64le
- arch: ppc64le
dist: noble
name: noble-ppc64le
- arch: arm64
dist: bionic
name: bionic-arm64
- arch: arm64
dist: focal
name: focal-arm64
- arch: arm64
dist: jammy
name: jammy-arm64
- arch: arm64
dist: noble
name: noble-arm64
- arch: s390x
dist: bionic
name: bionic-s390x
- arch: s390x
dist: focal
name: focal-s390x
- arch: s390x
dist: jammy
name: jammy-s390x
- arch: s390x
dist: noble
name: noble-s390x
env:
global:
- VERSION='5.24.3'
- ALIAS='5.24'
- ARGS=''
install:
- if [[ $TRAVIS_OS_NAME = 'osx' ]]; then sudo chown -R $USER $HOME/perl5/; fi
- \curl -L http://install.perlbrew.pl | bash
- export PATH=$HOME/perl5/perlbrew/bin:$PATH
before_script:
- export LSB_RELEASE=$(lsb_release -rs 2>/dev/null || sw_vers -productVersion | sed 's/^\([0-9][0-9]*.[0-9][0-9]*\).*/\1/')
- export OS_NAME=${OS_NAME:-$((lsb_release -is 2>/dev/null || echo "osx") | tr "A-Z" "a-z")}
- export ARCH=$(uname -m)
script:
- if [[ $TRAVIS_OS_NAME = 'osx' ]]; then source $HOME/perl5/perlbrew/etc/bashrc; fi
- perlbrew install-cpanm --force
- (perlbrew list | grep $VERSION) && (yes | perlbrew uninstall $VERSION) || true
- perlbrew install perl-$VERSION --as $VERSION $ARGS --notest
- |
if [[ x$ALIAS != x ]]; then
for alias in $ALIAS; do
(yes | perlbrew uninstall $ALIAS) || true; perlbrew alias -f create $VERSION $ALIAS || true
perlbrew list
TAR_PATHS='$HOME/perl5/perlbrew/perls/$alias'
TAR_PATHS="$TAR_PATHS $HOME/perl5/perlbrew/perls/$alias"
if [[ -z "${MODULES}" ]]; then export MODULES='ExtUtils::MakeMaker Dist::Zilla Moose Test::Pod Test::Pod::Coverage Test::Exception Dist::Zilla::Plugin::Bootstrap::lib LWP Module::Install Test::Most'; fi
for module in $MODULES; do perlbrew use $VERSION && cpanm $module --force --notest; done
done
else
perlbrew list
fi
- if [[ -z "${MODULES}" ]]; then export MODULES='ExtUtils::MakeMaker Dist::Zilla Moose Test::Pod Test::Pod::Coverage Test::Exception Dist::Zilla::Plugin::Bootstrap::lib LWP Module::Install Test::Most'; fi
- for module in $MODULES; do perlbrew use $VERSION && cpanm $module --force --notest; done
after_success:
- mkdir -p $TRAVIS_BUILD_DIR/$LSB_RELEASE/
- tar cjf $TRAVIS_BUILD_DIR/$LSB_RELEASE/perl-${NAME:-${VERSION}}.tar.bz2 $HOME/perl5/perlbrew/perls/$VERSION $HOME/perl5/perlbrew/bin
- if [[ x$ALIAS != x ]]; then tar cjf $TRAVIS_BUILD_DIR/$LSB_RELEASE/perl-${ALIAS}.tar.bz2 $HOME/perl5/perlbrew/perls/$VERSION $HOME/perl5/perlbrew/perls/$ALIAS $HOME/perl5/perlbrew/bin; fi
- ls -l $TRAVIS_BUILD_DIR/$LSB_RELEASE
addons:
artifacts:
paths:
- $LSB_RELEASE/
target_paths:
- /binaries/$OS_NAME/$LSB_RELEASE/$ARCH