-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
42 lines (37 loc) · 1.14 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
dist: bionic
language: perl
env: RELEASE_TESTING=1 AUTOMATED_TESTING=1 DEVEL_COVER=0
matrix:
include:
- perl: "5.30"
env: DEVEL_COVER=1
- perl: "5.28"
- perl: "5.26"
- perl: "5.24"
- perl: "5.22"
- perl: "5.20"
dist: trusty
- perl: "5.18"
dist: trusty
- perl: "5.16"
dist: trusty
- perl: "5.14"
dist: trusty
- perl: "5.12"
dist: trusty
- perl: "5.10"
dist: trusty
before_install:
- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
- cpanm --notest Perl::Tidy
- cpanm --notest Test::Code::TidyAll
install:
- cpanm --quiet --installdeps --notest --force --skip-satisfied .
- if [ "$DEVEL_COVER" = "1" ]; then cpanm --quiet --notest Devel::Cover; fi
script:
- if [ "$DEVEL_COVER" = "0" ]; then perl Build.PL && ./Build test; fi
- if [ "$DEVEL_COVER" = "1" ]; then perl Build.PL && ./Build build && cover -test; fi
after_success:
- if [ "$DEVEL_COVER" = "1" ]; then cpanm --quiet --notest --skip-satisfied Devel::Cover::Report::Coveralls; fi
- if [ "$DEVEL_COVER" = "1" ]; then cover -report coveralls; fi
sudo: false