-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
96 lines (89 loc) · 3.16 KB
/
azure-pipelines.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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
strategy:
matrix:
linux-perl530:
PERL_VERSION: '5.30.0'
IMAGE: 'ubuntu-latest'
linux-perl528:
PERL_VERSION: '5.28.2'
IMAGE: 'ubuntu-latest'
linux-perl526:
PERL_VERSION: '5.26.3'
IMAGE: 'ubuntu-latest'
linux-perl524:
PERL_VERSION: '5.24.4'
IMAGE: 'ubuntu-latest'
linux-perl522:
PERL_VERSION: '5.22.4'
IMAGE: 'ubuntu-latest'
linux-perl520:
PERL_VERSION: '5.20.3'
IMAGE: 'ubuntu-latest'
linux-perl518:
PERL_VERSION: '5.18.4'
IMAGE: 'ubuntu-latest'
linux-perl516:
PERL_VERSION: '5.16.3'
IMAGE: 'ubuntu-latest'
linux-perl514:
PERL_VERSION: '5.14.4'
IMAGE: 'ubuntu-latest'
macos-perl530:
PERL_VERSION: '5.30.0'
IMAGE: 'macos-latest'
macos-perl528:
PERL_VERSION: '5.28.2'
IMAGE: 'macos-latest'
macos-perl526:
PERL_VERSION: '5.26.3'
IMAGE: 'macos-latest'
macos-perl524:
PERL_VERSION: '5.24.4'
IMAGE: 'macos-latest'
macos-perl522:
PERL_VERSION: '5.22.4'
IMAGE: 'macos-latest'
pool:
vmImage: $(IMAGE)
steps:
- script: |
wget -O - https://install.perlbrew.pl | bash
export PATH=~/perl5/bin:~/perl5/perlbrew/bin:$PATH
echo "##vso[task.setvariable variable=PATH]$PATH"
displayName: 'Install perlbrew'
- script: |
export PATH=~/perl5/bin:~/perl5/perlbrew/bin:~/perl5/perlbrew/perls/perl-$(PERL_VERSION)/bin:$PATH
echo "##vso[task.setvariable variable=PATH]$PATH"
perlbrew install --notest perl-$(PERL_VERSION)
perl -V
curl -L https://cpanmin.us | perl - App::cpanminus
displayName: 'Install perl'
- script: |
export PATH=~/perl5/bin:~/perl5/perlbrew/bin:~/perl5/perlbrew/perls/perl-$(PERL_VERSION)/bin:$PATH
echo "##vso[task.setvariable variable=PATH]$PATH"
cpanm --quiet --notest Dist::Zilla~">= 5.0000, < 6.0000"
cpanm --quiet --notest Dist::Zilla::PluginBundle::Author::ALEXBIO
cpanm --quiet --notest Pod::Coverage::TrustPod
cpanm --quiet --notest Devel::Cover::Report::Coveralls
cpanm --quiet --notest Dist::Zilla::App::Command::cover
dzil authordeps --missing | cpanm --quiet --notest
dzil listdeps --missing | cpanm --quiet --notest
displayName: 'Install CPAN dependencies'
- script: |
export PATH=~/perl5/bin:~/perl5/perlbrew/bin:~/perl5/perlbrew/perls/perl-$(PERL_VERSION)/bin:$PATH
echo "##vso[task.setvariable variable=PATH]$PATH"
export RELEASE_TESTING=1
export NETWORK_TESTING=1
export AUTOMATED_TESTING=1
export AUTHOR_TESTING=1
echo "##vso[task.setvariable variable=RELEASE_TESTING]$RELEASE_TESTING"
echo "##vso[task.setvariable variable=NETWORK_TESTING]$NETWORK_TESTING"
echo "##vso[task.setvariable variable=AUTOMATED_TESTING]$AUTOMATED_TESTING"
echo "##vso[task.setvariable variable=AUTHOR_TESTING]$AUTHOR_TESTING"
dzil cover -ignore_re ^deps -ignore_re CORE -ignore_re ^const -test -report coveralls
displayName: 'Build/Test'