-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
80 lines (73 loc) · 2.36 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
# 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'
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: |
PATH=~/perl5/bin:~/perl5/perlbrew/bin:~/perl5/perlbrew/perls/perl-$(PERL_VERSION)/bin:$PATH
echo "##vso[task.setvariable variable=PATH]$PATH"
wget -O - https://install.perlbrew.pl | bash
perlbrew install --notest perl-$(PERL_VERSION)
perl -V
curl -L https://cpanmin.us | perl - App::cpanminus
condition: or(startsWith(variables['IMAGE'], 'ubuntu'), startsWith(variables['IMAGE'], 'macos'))
displayName: 'Install perl (Unix)'
- script: |
cpanm --quiet --notest Dist::Zilla Dist::Zilla::PluginBundle::Author::JACQUESG App::Ack
dzil authordeps --missing | ack -v "inc::" | cpanm --quiet --notest
dzil listdeps --missing | cpanm --quiet --notest
condition: or(startsWith(variables['IMAGE'], 'ubuntu'), startsWith(variables['IMAGE'], 'macos'))
displayName: 'Install CPAN dependencies (Unix)'
- script: |
dzil cover -ignore_re ^deps -ignore_re CORE -ignore_re ^const -test -report coveralls
condition: startsWith(variables['IMAGE'], 'ubuntu')
env:
COVERALLS_REPO_TOKEN: $(COVERALLS_TOKEN)
RELEASE_TESTING: 1
NETWORK_TESTING: 1
AUTOMATED_TESTING: 1
displayName: 'Build/Test (Linux)'
- script: |
dzil test
condition: startsWith(variables['IMAGE'], 'macos')
env:
RELEASE_TESTING: 1
NETWORK_TESTING: 1
AUTOMATED_TESTING: 1
displayName: 'Build/Test (macOS)'